aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent
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
parentAdd rudementary popup system. (diff)
downloadcalp-4a796f116b079cdb1fe398bf26f99758a679a702.tar.gz
calp-4a796f116b079cdb1fe398bf26f99758a679a702.tar.xz
Minor cleanup.
Diffstat (limited to 'module/vcomponent')
-rw-r--r--module/vcomponent/datetime.scm6
-rw-r--r--module/vcomponent/recurrence/generate.scm5
2 files changed, 4 insertions, 7 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)))
diff --git a/module/vcomponent/recurrence/generate.scm b/module/vcomponent/recurrence/generate.scm
index ba6257f8..42b3ca09 100644
--- a/module/vcomponent/recurrence/generate.scm
+++ b/module/vcomponent/recurrence/generate.scm
@@ -155,9 +155,8 @@
;; The value type of dtstart and dtend must be the same
;; according to RFC 5545 3.8.2.2 (Date-Time End).
(if (date? end)
- (time second: (print-and-return (date-difference end (attr event 'DTSTART))))
- (time second: (print-and-return (datetime-difference end (attr event 'DTSTART))))))]))
- (format (current-error-port) "duration = ~a~%" (attr event 'X-HNH-DURATION))
+ (time second: (date-difference end (attr event 'DTSTART)))
+ (time second: (datetime-difference end (attr event 'DTSTART)))))]))
(if (attr event "RRULE")
(recur-event-stream event (parse-recurrence-rule
(attr event "RRULE")