aboutsummaryrefslogtreecommitdiff
path: root/main.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-08 13:27:06 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-08 13:27:06 +0100
commit8cb32b73d8d84402b63f94b612357f144c7a69e7 (patch)
treefb6c7756c8359e397214058354624d332407aa32 /main.scm
parentMade DTSTART have <time> instead of <date> type. (diff)
downloadcalp-8cb32b73d8d84402b63f94b612357f144c7a69e7.tar.gz
calp-8cb32b73d8d84402b63f94b612357f144c7a69e7.tar.xz
Fix main.
Diffstat (limited to 'main.scm')
-rwxr-xr-xmain.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.scm b/main.scm
index 930535bc..dd45d68b 100755
--- a/main.scm
+++ b/main.scm
@@ -27,7 +27,7 @@
(define (main args)
(define path
(if (null? (cdr (command-line)))
- "testcal/d1-b.ics"
+ "testcal/repeating-event.ics"
(cadr (command-line))))
(define cal (make-vcomponent path))
@@ -38,8 +38,8 @@
time<? (extract "DTSTART"))
(lambda (ev) (format #t "~a | ~a~%"
(let ((start (get-attr ev "DTSTART")))
- (color-if (date-today? start) STR-YELLOW
- (date->string (time-utc->date start) "~1 ~H:~M")))
+ (color-if (today? start) STR-YELLOW
+ (time->string start "~1 ~H:~M")))
(get-attr ev "SUMMARY")))))