Skip to content

Commit

Permalink
Update calendar ID
Browse files Browse the repository at this point in the history
  • Loading branch information
frankus committed Apr 26, 2016
1 parent ae45b2a commit 28a73df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ApptentiveConnect/source/Misc/ApptentiveUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit 28a73df

Please sign in to comment.