mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
Tests: Times: JS: Local timezone assignment during Time to TimeInfo conversion.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user