mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
|
@ -1,10 +1,13 @@
|
|||
2019-01-07 Fred Kiefer <fredkiefer@gmx.de>
|
||||
2019-07-02 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Tests/base/GSTLS/basic.m: Use fixed time zone.
|
||||
|
||||
2019-07-01 Fred Kiefer <fredkiefer@gmx.de>
|
||||
|
||||
* Source/GSXML.m (fatalErrorFunction): Use correct function to get
|
||||
line number.
|
||||
* Source/NSOperation.m (_execute): Surround with NS_DURING to free
|
||||
lock on error.
|
||||
|
||||
2019-06-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/GNUstepBase/GSIArray.h:
|
||||
|
|
|
@ -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…
Reference in a new issue