diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/vcomponent/datetime.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/vcomponent/datetime.scm b/module/vcomponent/datetime.scm index 496a6a8c..4db9dbf1 100644 --- a/module/vcomponent/datetime.scm +++ b/module/vcomponent/datetime.scm @@ -55,7 +55,7 @@ Event must have the DTSTART and DTEND attribute set." (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))) + (datetime-difference (datetime-min (datetime date: (date+ end-date (date day: 1))) (as-datetime (attr e 'DTEND))) (datetime-max (datetime date: start-date) (as-datetime (attr e 'DTSTART))))) ;; Returns the length of the part of @var{e} which is within the day |