aboutsummaryrefslogtreecommitdiff
path: root/module/vcalendar/datetime.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-25 13:56:15 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-25 13:56:15 +0100
commit7c2adefaee82dbf2843dc6bf5364c4b664b4b366 (patch)
treee831c289deafdd41758a51dc9092c2e3fb5d1f86 /module/vcalendar/datetime.scm
parentFix events being dropped by sorting them. (diff)
downloadcalp-7c2adefaee82dbf2843dc6bf5364c4b664b4b366.tar.gz
calp-7c2adefaee82dbf2843dc6bf5364c4b664b4b366.tar.xz
Minor cleanups.
Diffstat (limited to 'module/vcalendar/datetime.scm')
-rw-r--r--module/vcalendar/datetime.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/vcalendar/datetime.scm b/module/vcalendar/datetime.scm
index 360b8348..d28096c6 100644
--- a/module/vcalendar/datetime.scm
+++ b/module/vcalendar/datetime.scm
@@ -30,5 +30,6 @@ Event must have the DTSTART and DTEND attribute set."
"Does event overlap the date that contains time."
(let* ((date (time-utc->date time))
(start (date->time-utc (drop-time date)))
- (end (add-duration start (make-duration (* 60 60 24)))))
+ (end (add-day start)))
(event-overlaps? ev start end)))
+