Tests: Times: JS: Local timezone assignment during Time to TimeInfo conversion.

This commit is contained in:
Konstantin Molchanov
2017-03-27 22:01:37 +04:00
parent 6a583b6d2f
commit cc9d282348

View File

@@ -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()