forked from organicmaps/organicmaps
[cleanup] [ios] Fixed fixed-format NSDateFormatter not using invariant (POSIX) locale.
This commit is contained in:
parent
8d574916fe
commit
08a1048498
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue