mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Simple check for timezone adjustments around 1970
This commit is contained in:
parent
68308540bd
commit
f4da566b94
1 changed files with 7 additions and 0 deletions
|
@ -99,6 +99,13 @@ int main()
|
|||
PASS(date1 != nil,
|
||||
"+dateWithString:calendarFormat:locale: handles GMT-0100 timezone");
|
||||
|
||||
date1 = [NSCalendarDate dateWithString: @"1970-01-01 00:00:00 GMT+1000"
|
||||
calendarFormat: @"%Y-%m-%d %H:%M:%S %Z"
|
||||
locale: locale];
|
||||
[date1 setTimeZone: [NSTimeZone timeZoneWithName: @"GMT"]];
|
||||
PASS_EQUAL([date1 description], @"1969-12-31 14:00:00 GMT+0000",
|
||||
"+dateWithString:calendarFormat:locale: handles GMT+1000 timezone");
|
||||
|
||||
date1 = [NSCalendarDate dateWithString:
|
||||
@"1999-12-31 00:00:00 Africa/Addis_Ababa"
|
||||
calendarFormat: @"%Y-%m-%d %H:%M:%S %Z"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue