diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-05 21:34:52 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-05 21:34:56 +0200 |
commit | 228d485e10f44b402843badabba4f09599f3c2a3 (patch) | |
tree | 2b00de0ea6a1b7a9c4cceff31f7ec009941731f7 /module/datetime/util.scm | |
parent | Add profile! macro. (diff) | |
download | calp-228d485e10f44b402843badabba4f09599f3c2a3.tar.gz calp-228d485e10f44b402843badabba4f09599f3c2a3.tar.xz |
Change to only call get-datetime in parse.
Diffstat (limited to '')
-rw-r--r-- | module/datetime/util.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/datetime/util.scm b/module/datetime/util.scm index 910c42d3..d310992c 100644 --- a/module/datetime/util.scm +++ b/module/datetime/util.scm @@ -157,9 +157,8 @@ str))) (define*-public (datetime->string datetime optional: (fmt "~Y-~m-~dT~H:~M:~S") key: allow-unknown?) - (define dt (get-datetime datetime)) - (define date (get-date dt)) - (define time ((@ (datetime) get-time%) dt)) + (define date (get-date datetime)) + (define time ((@ (datetime) get-time%) datetime)) (with-output-to-string (lambda () (fold (lambda (token state) |