aboutsummaryrefslogtreecommitdiff
path: root/module/datetime
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-05-05 21:34:52 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-05-05 21:34:56 +0200
commit228d485e10f44b402843badabba4f09599f3c2a3 (patch)
tree2b00de0ea6a1b7a9c4cceff31f7ec009941731f7 /module/datetime
parentAdd profile! macro. (diff)
downloadcalp-228d485e10f44b402843badabba4f09599f3c2a3.tar.gz
calp-228d485e10f44b402843badabba4f09599f3c2a3.tar.xz
Change to only call get-datetime in parse.
Diffstat (limited to 'module/datetime')
-rw-r--r--module/datetime/util.scm5
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)