mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Tests/base/NSCalendar/era.m: Fix testing with non-English locale
Signed-off-by: Страхиња Радић <contact@strahinja.org>
This commit is contained in:
parent
a0ce4ab880
commit
ecc5d8008c
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ int main()
|
|||
/* Test getEra:year:month:day:fromDate:
|
||||
*/
|
||||
dateFormatter = [[NSDateFormatter alloc] init];
|
||||
[dateFormatter setLocale: [[NSLocale alloc] initWithLocaleIdentifier:
|
||||
[NSLocale canonicalLocaleIdentifierFromString: @"en_US"]]];
|
||||
cal = [NSCalendar currentCalendar];
|
||||
[cal setTimeZone:[NSTimeZone timeZoneWithName: @"America/New_York"]];
|
||||
[dateFormatter setDateFormat: @"d MMM yyyy HH:mm:ss Z"];
|
||||
|
|
Loading…
Reference in a new issue