From cc9d282348bf878a0a68d64c0c0df80253639aed Mon Sep 17 00:00:00 2001 From: Konstantin Molchanov Date: Mon, 27 Mar 2017 22:01:37 +0400 Subject: [PATCH] Tests: Times: JS: Local timezone assignment during Time to TimeInfo conversion. --- tests/js/ttimes.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/js/ttimes.nim b/tests/js/ttimes.nim index 644e9670af..c444932900 100644 --- a/tests/js/ttimes.nim +++ b/tests/js/ttimes.nim @@ -11,3 +11,7 @@ import times block yeardayTest: # check if yearday attribute is properly set on TimeInfo creation doAssert fromSeconds(2147483647).getGMTime().yearday == 18 + +block timezoneTest: + # check if timezone is properly set durint Time to TimeInfo conversion + doAssert fromSeconds(2147483647).getLocalTime().timezone == getTimezone()