diff options
Diffstat (limited to 'test/01-native.janet')
| -rw-r--r-- | test/01-native.janet | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/01-native.janet b/test/01-native.janet index 00f8c9b..0c0e2fc 100644 --- a/test/01-native.janet +++ b/test/01-native.janet @@ -40,3 +40,11 @@ (set ran? true) (assert (keyword? k))) (assert ran? "failed to iterate over tm") + +# test timezone detection +# ... except when dst is on locally, it's not worth it, do not look into this +(when (false? (ld :isdst)) + (def ld2 (merge gd {:min (+ (gd :min) (native/tzoffset))})) + (def lm2 (native/dict->tm ld2)) + (:normalize lm2) + (assert (= lm2 local))) |
