diff --git a/SOPE/NGCards/IcalElements.m b/SOPE/NGCards/IcalElements.m index 1ff018f3a..d58704842 100644 --- a/SOPE/NGCards/IcalElements.m +++ b/SOPE/NGCards/IcalElements.m @@ -199,7 +199,7 @@ static inline id GetProperty(NSDictionary *_set, NSString *_name) { if ([val respondsToSelector:@selector(descriptionWithCalendarFormat:)]) { static NSTimeZone *gmt = nil; - if (gmt == nil) gmt = [NSTimeZone timeZoneWithAbbreviation:@"GMT"]; + if (gmt == nil) gmt = [NSTimeZone timeZoneForSecondsFromGMT: 0]; [val setTimeZone:gmt]; val = [val descriptionWithCalendarFormat:calfmt]; } diff --git a/SOPE/NGCards/NSCalendarDate+ICal.m b/SOPE/NGCards/NSCalendarDate+ICal.m index 4e6d529b6..820c05980 100644 --- a/SOPE/NGCards/NSCalendarDate+ICal.m +++ b/SOPE/NGCards/NSCalendarDate+ICal.m @@ -32,7 +32,7 @@ static NSTimeZone *gmt = nil; static inline void _setupGMT(void) { if (gmt == nil) - gmt = [[NSTimeZone timeZoneWithAbbreviation:@"GMT"] retain]; + gmt = [[NSTimeZone timeZoneForSecondsFromGMT: 0] retain]; } @implementation NSCalendarDate(iCalRepresentation) diff --git a/SOPE/NGCards/NSString+NGCards.m b/SOPE/NGCards/NSString+NGCards.m index 02c1c3d0b..ed8bd2b2d 100644 --- a/SOPE/NGCards/NSString+NGCards.m +++ b/SOPE/NGCards/NSString+NGCards.m @@ -340,7 +340,7 @@ second = 0; } - utc = [NSTimeZone timeZoneWithAbbreviation: @"GMT"]; + utc = [NSTimeZone timeZoneForSecondsFromGMT: 0]; date = [NSCalendarDate dateWithYear: year month: month day: day hour: hour minute: minute second: second diff --git a/SOPE/NGCards/iCalFreeBusy.m b/SOPE/NGCards/iCalFreeBusy.m index 74b25a2c1..913e0cb78 100644 --- a/SOPE/NGCards/iCalFreeBusy.m +++ b/SOPE/NGCards/iCalFreeBusy.m @@ -107,7 +107,7 @@ NSCalendarDate *utcStart, *utcEnd; NSTimeZone *uTZ; - uTZ = [NSTimeZone timeZoneWithAbbreviation: @"GMT"]; + uTZ = [NSTimeZone timeZoneForSecondsFromGMT: 0]; utcStart = [start copy]; utcEnd = [end copy]; [utcStart setTimeZone: uTZ]; diff --git a/SoObjects/Appointments/MSExchangeFreeBusySOAPRequest.m b/SoObjects/Appointments/MSExchangeFreeBusySOAPRequest.m index 18dc6ad65..ef36812b5 100644 --- a/SoObjects/Appointments/MSExchangeFreeBusySOAPRequest.m +++ b/SoObjects/Appointments/MSExchangeFreeBusySOAPRequest.m @@ -45,7 +45,7 @@ if ((self = [super init])) { address = nil; - timeZone = [NSTimeZone timeZoneWithAbbreviation: @"GMT"]; + timeZone = [NSTimeZone timeZoneForSecondsFromGMT: 0]; [timeZone retain]; startDate = nil; endDate = nil; diff --git a/UI/MainUI/SOGoRootPage.m b/UI/MainUI/SOGoRootPage.m index c984d4670..6f8c39bc1 100644 --- a/UI/MainUI/SOGoRootPage.m +++ b/UI/MainUI/SOGoRootPage.m @@ -112,7 +112,7 @@ appName = [[context request] applicationName]; date = [NSCalendarDate calendarDate]; - [date setTimeZone: [NSTimeZone timeZoneWithAbbreviation: @"GMT"]]; + [date setTimeZone: [NSTimeZone timeZoneForSecondsFromGMT: 0]]; if (username) { // Cookie expires in one month @@ -151,7 +151,7 @@ if (cookieReset) { date = [NSCalendarDate calendarDate]; - [date setTimeZone: [NSTimeZone timeZoneWithAbbreviation: @"GMT"]]; + [date setTimeZone: [NSTimeZone timeZoneForSecondsFromGMT: 0]]; [locationCookie setExpires: [date yesterday]]; } diff --git a/UI/MainUI/SOGoSAML2Actions.m b/UI/MainUI/SOGoSAML2Actions.m index 09bc3d060..aba1b23cc 100644 --- a/UI/MainUI/SOGoSAML2Actions.m +++ b/UI/MainUI/SOGoSAML2Actions.m @@ -98,7 +98,7 @@ cookie = nil; date = [NSCalendarDate calendarDate]; - [date setTimeZone: [NSTimeZone timeZoneWithAbbreviation: @"GMT"]]; + [date setTimeZone: [NSTimeZone timeZoneForSecondsFromGMT: 0]]; // We cleanup the memecached/database session cache. We do this before // invoking _logoutCookieWithDate: in order to obtain its value. @@ -151,7 +151,7 @@ appName = [rq applicationName]; [locationCookie setPath: [NSString stringWithFormat: @"/%@/", appName]]; date = [NSCalendarDate calendarDate]; - [date setTimeZone: [NSTimeZone timeZoneWithAbbreviation: @"GMT"]]; + [date setTimeZone: [NSTimeZone timeZoneForSecondsFromGMT: 0]]; [locationCookie setExpires: [date yesterday]]; return locationCookie; diff --git a/UI/MainUI/SOGoUserHomePage.m b/UI/MainUI/SOGoUserHomePage.m index 2fdc521fd..19f553889 100644 --- a/UI/MainUI/SOGoUserHomePage.m +++ b/UI/MainUI/SOGoUserHomePage.m @@ -434,7 +434,7 @@ response = [self redirectToLocation: [self _logoutRedirectURL]]; date = [NSCalendarDate calendarDate]; - [date setTimeZone: [NSTimeZone timeZoneWithAbbreviation: @"GMT"]]; + [date setTimeZone: [NSTimeZone timeZoneForSecondsFromGMT: 0]]; // We cleanup the memecached/database session cache. We do this before // invoking _logoutCookieWithDate: in order to obtain its value.