diff --git a/calendar/ics.go b/calendar/ics.go index 83fc21b..ffd0982 100644 --- a/calendar/ics.go +++ b/calendar/ics.go @@ -17,7 +17,7 @@ CALSCALE:GREGORIAN METHOD:PUBLISH X-WR-CALNAME:{{.Name}} X-WR-TIMEZONE:Asia/Taipei -X-WR-CALDESC:{{.Name}} +X-WR-CALDESC:{{.Name}}{{/* BEGIN:VTIMEZONE TZID:{{.Timezone}} X-LIC-LOCATION:{{.Timezone}} @@ -27,7 +27,7 @@ TZOFFSETTO:+0800 TZNAME:CST DTSTART:19700101T000000 END:STANDARD -END:VTIMEZONE{{with .Events}}{{ if gt (len .) 0 }}{{ range $event := . }} +END:VTIMEZONE*/}}{{with .Events}}{{ if gt (len .) 0 }}{{ range $event := . }} BEGIN:VEVENT DTSTART:{{$event.Start|icstime}} DTEND:{{$event.End|icstime}}