Skip to content

Commit

Permalink
Merge pull request segmentio#436 from graingert/ISO8601
Browse files Browse the repository at this point in the history
Use invariant locale for ISO8601 date formatter
  • Loading branch information
f2prateek committed Sep 21, 2015
2 parents 90d539e + 8b188ca commit 97b9057
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 97b9057

Please sign in to comment.