Skip to content

Commit

Permalink
Fix mt_dateFromISOString
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryota Hayashi committed Apr 23, 2015
1 parent 12d5896 commit 24236af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MTDates/NSDate+MTDates.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ + (NSDate *)mt_dateFromISOString:(NSString *)ISOString
}

NSDateFormatter* formatter = [[NSDateFormatter alloc] init];
[formatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]];
[formatter setCalendar:[[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]];
[formatter setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]];

Expand Down

0 comments on commit 24236af

Please sign in to comment.