mirror of
https://github.com/dlang/phobos.git
synced 2025-05-03 16:40:48 +03:00
fix datetime test
This commit is contained in:
parent
bae162b916
commit
8b32555eab
1 changed files with 5 additions and 4 deletions
|
@ -33027,10 +33027,11 @@ version(unittest)
|
|||
: TimeZone.getTimeZone("America/Denver");
|
||||
immutable ot = otherTZ.utcToTZ(0);
|
||||
|
||||
auto diffs = [0, lt, ot];
|
||||
auto diffAA = [0 : Rebindable!(immutable TimeZone)(UTC()),
|
||||
lt : Rebindable!(immutable TimeZone)(LocalTime()),
|
||||
ot : Rebindable!(immutable TimeZone)(otherTZ)];
|
||||
auto diffs = [0L, lt, ot];
|
||||
auto diffAA = [0L : Rebindable!(immutable TimeZone)(UTC())];
|
||||
diffAA[lt] = Rebindable!(immutable TimeZone)(LocalTime());
|
||||
diffAA[ot] = Rebindable!(immutable TimeZone)(otherTZ);
|
||||
|
||||
sort(diffs);
|
||||
testTZs = [diffAA[diffs[0]], diffAA[diffs[1]], diffAA[diffs[2]]];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue