Skip to content

Commit

Permalink
Use invariant locale for ISO8601 date formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaunt authored and Thomas Grainger committed Sep 21, 2015
1 parent 90d539e commit 8b188ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Analytics/SEGAnalyticsUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
dateFormatter = [[NSDateFormatter alloc] init];
dateFormatter.locale = [NSLocale localeWithLocaleIdentifier:@"en_US_POSIX"];
dateFormatter.dateFormat = @"yyyy-MM-dd'T'HH:mm:ssZ";
});
return [dateFormatter stringFromDate:date];
Expand Down

0 comments on commit 8b188ca

Please sign in to comment.