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
@@ -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]];
}