[cleanup] [ios] Fixed fixed-format NSDateFormatter not using invariant (POSIX) locale.

This commit is contained in:
Ilya Grechuhin 2017-01-10 16:08:26 +03:00
parent 8d574916fe
commit 08a1048498

View file

@ -208,7 +208,7 @@ NSDictionary * const kDeviceNamesWithMetalDriver = @{
NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"LLL d yyyy HH:mm:ss"];
[dateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]];
[dateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]];
_buildDate = [dateFormatter dateFromString:dateStr];
}
return _buildDate;