aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-17 15:52:33 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-17 15:52:33 +0200
commitf9814bd935f6ddb2454181bbf24ec75a487228ff (patch)
tree493ab1cb2ee9f20a1ba8f650b8aae3010e5ee592 /module/vcomponent
parentChange main to a module. (diff)
downloadcalp-f9814bd935f6ddb2454181bbf24ec75a487228ff.tar.gz
calp-f9814bd935f6ddb2454181bbf24ec75a487228ff.tar.xz
Fix date output on long events.
Diffstat (limited to 'module/vcomponent')
-rw-r--r--module/vcomponent/datetime/output.scm11
1 files changed, 5 insertions, 6 deletions
diff --git a/module/vcomponent/datetime/output.scm b/module/vcomponent/datetime/output.scm
index 48c89783..c76f010f 100644
--- a/module/vcomponent/datetime/output.scm
+++ b/module/vcomponent/datetime/output.scm
@@ -54,9 +54,9 @@
(cond [(prop ev 'DTEND)
=> (lambda (e)
(if (date= e (date+ s (date day: 1)))
- (date->string s) ; start = end, only return one value
- (values (date->string s)
- (date->string e))))]
+ "~Y-~m-~d" ; start = end, only return one value
+ (values "~Y-~m-~d"
+ "~Y-~m-~d")))]
;; no end value, just return start
[else (date->string s)]))]
[else ; guaranteed datetime
@@ -65,6 +65,5 @@
(if e
(let ((fmt-str (if (date= (get-date s) (get-date e))
"~H:~M" "~Y-~m-~d ~H:~M")))
- (values (datetime->string s fmt-str)
- (datetime->string e fmt-str)))
- (datetime->string s "~Y-~m-~d ~H:~M")))]))
+ (values fmt-str fmt-str))
+ "~Y-~m-~d ~H:~M"))]))