diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-24 22:31:08 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-24 22:31:08 +0200 |
commit | 88e14917882b0c3f79e942b61027882fe9a7fe87 (patch) | |
tree | de6180eed71a65a50fcf55b67796b6f1b92de54c /module/vcomponent/group.scm | |
parent | Catch warnings in tests. (diff) | |
download | calp-88e14917882b0c3f79e942b61027882fe9a7fe87.tar.gz calp-88e14917882b0c3f79e942b61027882fe9a7fe87.tar.xz |
Handle events with no DTEND.
Diffstat (limited to '')
-rw-r--r-- | module/vcomponent/group.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/vcomponent/group.scm b/module/vcomponent/group.scm index 1e5728c6..72acbce9 100644 --- a/module/vcomponent/group.scm +++ b/module/vcomponent/group.scm @@ -26,7 +26,11 @@ ;; of tommorow, and finishes with the rest when it finds the first ;; object which begins tomorow (after midnight, exclusize). (filter-sorted-stream* - (lambda (e) (date/-time<? tomorow (attr e 'DTEND))) + (lambda (e) (date/-time<? tomorow + (or (attr e 'DTEND) + (if (date? (attr e 'DTSTART)) + (date+ (attr e 'DTSTART) (date day: 1)) + (attr e 'DTSTART))))) (lambda (e) (date/-time<=? tomorow (attr e 'DTSTART))) stream))) |