From 24236afc9954363c55e213d07a4d605651bcb686 Mon Sep 17 00:00:00 2001 From: Ryota Hayashi Date: Fri, 27 Mar 2015 15:42:09 +0900 Subject: [PATCH] Fix mt_dateFromISOString --- MTDates/NSDate+MTDates.m | 1 + 1 file changed, 1 insertion(+) diff --git a/MTDates/NSDate+MTDates.m b/MTDates/NSDate+MTDates.m index ecada52..5be054d 100644 --- a/MTDates/NSDate+MTDates.m +++ b/MTDates/NSDate+MTDates.m @@ -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]];