aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/datetime.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-21 00:37:27 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-21 00:37:27 +0100
commit4a796f116b079cdb1fe398bf26f99758a679a702 (patch)
tree3edf957372c3155a2c08a7c09dabfdd598e07e12 /module/vcomponent/datetime.scm
parentAdd rudementary popup system. (diff)
downloadcalp-4a796f116b079cdb1fe398bf26f99758a679a702.tar.gz
calp-4a796f116b079cdb1fe398bf26f99758a679a702.tar.xz
Minor cleanup.
Diffstat (limited to 'module/vcomponent/datetime.scm')
-rw-r--r--module/vcomponent/datetime.scm6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/vcomponent/datetime.scm b/module/vcomponent/datetime.scm
index ffde1e6e..496a6a8c 100644
--- a/module/vcomponent/datetime.scm
+++ b/module/vcomponent/datetime.scm
@@ -51,10 +51,8 @@ Event must have the DTSTART and DTEND attribute set."
(if (date? (attr e 'DTSTART))
#24:00:00
#01:00:00))
- (let ((ret (datetime-difference (as-datetime (attr e 'DTEND))
- (as-datetime (attr e 'DTSTART)))))
- (format (current-error-port) "ret = ~a~%" ret)
- ret)))
+ (datetime-difference (as-datetime (attr e 'DTEND))
+ (as-datetime (attr e 'DTSTART)))))
(define-public (event-length/clamped start-date end-date e)
(datetime-difference (datetime-min (datetime date: end-date) (as-datetime (attr e 'DTEND)))