diff options
| author | 2023-05-11 17:22:35 -0400 | |
|---|---|---|
| committer | 2023-05-11 17:22:35 -0400 | |
| commit | 4729ff6e02839df86981dcc4773c00ef47efc5ec (patch) | |
| tree | 5af3eac40e2cb881535a4c6cfeec693653813155 /test | |
| parent | initial commit (diff) | |
update many things
this is kind of a mess and I'm thinking of making the native portion
much bigger to just have a better API at this point
Diffstat (limited to 'test')
| -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))) |
