fix(preferences): add plus sign to timezone in Sieve script

Fixes #5448
This commit is contained in:
Francis Lachapelle
2021-12-16 09:13:24 -05:00
parent bdfe1be770
commit 2daeab3dd7

View File

@@ -1035,7 +1035,7 @@ static NSString *sieveScriptName = @"sogo";
}
seconds = [[ud timeZone] secondsFromGMT];
timeZone = [NSString stringWithFormat: @"%.2i%02i", seconds/60/60, seconds/60%60];
timeZone = [NSString stringWithFormat: @"%@%.2i%02i", seconds > 0 ? @"+" : @"", seconds/60/60, seconds/60%60];
timeConditions = [NSMutableArray array];
startTime = endTime = nil;