From 28a73dfa5d9f179868335fa4782869b738cb7c8f Mon Sep 17 00:00:00 2001 From: Frank Schmitt Date: Tue, 26 Apr 2016 11:45:50 -0700 Subject: [PATCH] Update calendar ID --- ApptentiveConnect/source/Misc/ApptentiveUtilities.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApptentiveConnect/source/Misc/ApptentiveUtilities.m b/ApptentiveConnect/source/Misc/ApptentiveUtilities.m index 2abcf79a6..3539fea97 100644 --- a/ApptentiveConnect/source/Misc/ApptentiveUtilities.m +++ b/ApptentiveConnect/source/Misc/ApptentiveUtilities.m @@ -141,7 +141,7 @@ + (NSString *)stringRepresentationOfDate:(NSDate *)aDate { dispatch_once(&onceToken, ^{ dateFormatter = [[NSDateFormatter alloc] init]; NSLocale *enUSLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]; - NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; + NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; [dateFormatter setLocale:enUSLocale]; [dateFormatter setCalendar:calendar]; [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];