diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2020-01-30 22:51:45 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2020-01-30 22:51:45 +0100 |
commit | f852c30bcef530d18a474ab6ab8350a3ef93d563 (patch) | |
tree | 00fc29a6ff1a8c842d0a526f04d4124977dd6e46 /module/vcomponent/group.scm | |
parent | Update recurrence generate to new date obj. (diff) | |
download | calp-f852c30bcef530d18a474ab6ab8350a3ef93d563.tar.gz calp-f852c30bcef530d18a474ab6ab8350a3ef93d563.tar.xz |
Once again compiles.
Diffstat (limited to 'module/vcomponent/group.scm')
-rw-r--r-- | module/vcomponent/group.scm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/vcomponent/group.scm b/module/vcomponent/group.scm index acf41999..83d79f9a 100644 --- a/module/vcomponent/group.scm +++ b/module/vcomponent/group.scm @@ -9,14 +9,14 @@ ;; TODO templetize this (define-stream (group-stream in-stream) - (define (ein? day) (lambda (e) (event-contains? e (date->time-utc day)))) + (define (ein? day) (lambda (e) (event-contains? e day))) - (let loop ((days (day-stream (time-utc->date (attr (stream-car in-stream) 'DTSTART)))) + (let loop ((days (day-stream (as-date (attr (stream-car in-stream) 'DTSTART)))) (stream in-stream)) (if (stream-null? stream) stream-null (let* ((day (stream-car days)) - (tomorow (date->time-utc (stream-car (stream-cdr days))))) + (tomorow (stream-car (stream-cdr days)))) (let ((head (stream-take-while (ein? day) stream)) (tail @@ -26,8 +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) (time<? tomorow (attr e 'DTEND))) - (lambda (e) (time<=? tomorow (attr e 'DTSTART))) + (lambda (e) (date/-time<? tomorow (attr e 'DTEND))) + (lambda (e) (date/-time<=? tomorow (attr e 'DTSTART))) stream))) |