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

Fixes #5448
This commit is contained in:
Francis Lachapelle
2021-12-16 09:40:52 -05:00
parent 2daeab3dd7
commit f1912310db
+1 -1
View File
@@ -1035,7 +1035,7 @@ static NSString *sieveScriptName = @"sogo";
}
seconds = [[ud timeZone] secondsFromGMT];
timeZone = [NSString stringWithFormat: @"%@%.2i%02i", seconds > 0 ? @"+" : @"", 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;