Skip to content

Commit 695252e

Browse files
committed
update test
1 parent 3724465 commit 695252e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/skript/tests/misc/timezone.sk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ test "timezone syntaxes":
1111
set {_d.in.nyc} to date(2030, 6, 4, 4, 23)
1212
set {_d.in.istanbul} to date(2030, 6, 4, 11, 23)
1313

14-
assert {_d} in timezone "America/New_York" is {_d.in.nyc} with "returned incorrect date for New York"
15-
assert {_d} in timezone "Europe/Istanbul" is {_d.in.istanbul} with "returned incorrect date for Istanbul"
14+
assert difference between ({_d} in timezone "America/New_York") and {_d.in.nyc} < 1 second with "returned incorrect date for New York"
15+
assert difference between ({_d} in timezone "Europe/Istanbul") and {_d.in.istanbul} < 1 second with "returned incorrect date for Istanbul"

0 commit comments

Comments
 (0)