aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/ical/output.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/vcomponent/ical/output.scm')
-rw-r--r--module/vcomponent/ical/output.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/module/vcomponent/ical/output.scm b/module/vcomponent/ical/output.scm
index ec2458ba..75e579b8 100644
--- a/module/vcomponent/ical/output.scm
+++ b/module/vcomponent/ical/output.scm
@@ -18,6 +18,10 @@
:use-module ((datetime instance) :select (zoneinfo))
)
+(define (prodid)
+ (format #f "-//hugo//calp ~a//EN"
+ (@ (calp) version)))
+
;; Format value depending on key type.
;; Should NOT emit the key.
@@ -163,7 +167,7 @@
(define (write-event-to-file event calendar-path)
(define cal (make-vcomponent 'VCALENDAR))
- (set! (prop cal 'PRODID) (@ (global) *prodid*)
+ (set! (prop cal 'PRODID) (prodid)
(prop cal 'VERSION) "2.0"
(prop cal 'CALSCALE) "GREGORIAN")
@@ -191,7 +195,7 @@
PRODID:~a\r
VERSION:2.0\r
CALSCALE:GREGORIAN\r
-" (@ (global) *prodid*)
+" (prodid)
))