diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-03-22 23:40:49 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-03-22 23:40:49 +0100 |
commit | 3c211e775f57a1a5a731bb4d059bafbaa581210d (patch) | |
tree | 38958e29cd9f58fa9192b7b196f14b3d60dee9b2 /tests/datetime-compare.scm | |
parent | Date difference once again returns dates. (diff) | |
download | calp-3c211e775f57a1a5a731bb4d059bafbaa581210d.tar.gz calp-3c211e775f57a1a5a731bb4d059bafbaa581210d.tar.xz |
Fix TZ problem with datetime<.
Diffstat (limited to 'tests/datetime-compare.scm')
-rw-r--r-- | tests/datetime-compare.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/datetime-compare.scm b/tests/datetime-compare.scm index eab2b949..cd077e87 100644 --- a/tests/datetime-compare.scm +++ b/tests/datetime-compare.scm @@ -64,6 +64,12 @@ (test-assert "date/-time< other dt, same date" (date/-time< #2020-01-01 #2020-01-01T10:00:00)) +;; In UTC+2 (CEST) the below datetime overflows into midnight the following +;; day. Earlier versions of this program only looked at the time component +(test-assert "date/-time< TZ overflow" + (date/-time< #2020-04-05 + (datetime date: #2020-04-05 time: #22:00:00 tz: "UTC"))) + (test-assert "date/-time< time-only" (date/-time< #00:00:00 #10:00:00)) |