diff options
Diffstat (limited to 'module/vcomponent')
-rw-r--r-- | module/vcomponent/datetime.scm | 1 | ||||
-rw-r--r-- | module/vcomponent/group.scm | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/module/vcomponent/datetime.scm b/module/vcomponent/datetime.scm index 44776516..7fc22066 100644 --- a/module/vcomponent/datetime.scm +++ b/module/vcomponent/datetime.scm @@ -107,6 +107,7 @@ Event must have the DTSTART and DTEND attribute set." (define-public (long-event? ev) (or (date? (attr ev 'DTSTART)) (datetime<= (datetime date: (date day: 1)) + ;; TODO DTEND optional (datetime-difference (attr ev 'DTEND) (attr ev 'DTSTART))))) diff --git a/module/vcomponent/group.scm b/module/vcomponent/group.scm index 1e5728c6..da912e4d 100644 --- a/module/vcomponent/group.scm +++ b/module/vcomponent/group.scm @@ -26,7 +26,8 @@ ;; 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))) + ;; TODO Calculate Alternative DTEND better? + (lambda (e) (date/-time<? tomorow (or (attr e 'DTEND) (attr e 'DTSTART)))) (lambda (e) (date/-time<=? tomorow (attr e 'DTSTART))) stream))) |