mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Use fixed time zone in test case
This commit is contained in:
parent
d774dda8a7
commit
7eb0858c4a
2 changed files with 8 additions and 4 deletions
|
@ -26,8 +26,9 @@ START_SET("TLS support")
|
|||
PASS([c expiresAt: 2] == nil, "Return nil for invalid index");
|
||||
expiresAt = [c expiresAt: 0];
|
||||
dateFormatter = [[NSDateFormatter alloc] init];
|
||||
[dateFormatter setDateFormat: @"yyyy-MM-dd HH:mm:ss"];
|
||||
PASS_EQUAL(expiresAt, [dateFormatter dateFromString: @"2118-12-14 15:35:11"],
|
||||
[dateFormatter setDateFormat: @"yyyy-MM-dd HH:mm:ss zzz"];
|
||||
PASS_EQUAL(expiresAt,
|
||||
[dateFormatter dateFromString: @"2118-12-14 15:35:11 +0000"],
|
||||
"Expiration date can be retrieved");
|
||||
[dateFormatter release];
|
||||
PASS_EQUAL([c expiresAt], expiresAt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue