From f1912310db903455a0ab9422018278f3b36245e5 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 16 Dec 2021 09:40:52 -0500 Subject: [PATCH] fix(preferences): add plus sign to timezone in Sieve script Fixes #5448 --- SoObjects/SOGo/SOGoSieveManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoSieveManager.m b/SoObjects/SOGo/SOGoSieveManager.m index 271052f6a2..2239e617d0 100644 --- a/SoObjects/SOGo/SOGoSieveManager.m +++ b/SoObjects/SOGo/SOGoSieveManager.m @@ -1035,7 +1035,7 @@ - (NSException *) updateFiltersForAccount: (SOGoMailAccount *) theAccount } 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;