refactor: replace calls to create GMT NSTimeZone instance

Fixes #3757
This commit is contained in:
Francis Lachapelle
2019-12-11 11:13:36 -05:00
parent eafbdd3884
commit 2b33d45346
8 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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;