1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-02 08:33:04 +00:00

Default to UTC for date.

This commit is contained in:
Calvin Rose
2019-11-09 16:57:21 -06:00
parent 44ed2c6b47
commit 719f7ba0c4
2 changed files with 38 additions and 8 deletions

View File

@@ -208,4 +208,17 @@
(for i 0 75
(test-rng (math/rng (:int seedrng))))
# OS Date test
(assert (deep= {:year-day 0
:minutes 30
:month 0
:dst false
:seconds 0
:year 2014
:month-day 0
:hours 20
:week-day 3}
(os/date 1388608200)) "os/date")
(end-suite)