diff --git a/calendar/ics.go b/calendar/ics.go index ed82d71..fdd4720 100644 --- a/calendar/ics.go +++ b/calendar/ics.go @@ -26,8 +26,8 @@ TZOFFSETTO:+0800 TZNAME:CST DTSTART:19700101T000000 END:STANDARD -END:VTIMEZONE -{{with .Events}}{{ if gt (len .) 0 }}{{ range $event := . }}BEGIN:VEVENT +END:VTIMEZONE{{with .Events}}{{ if gt (len .) 0 }}{{ range $event := . }} +BEGIN:VEVENT DTSTART:{{$event.Start|icstime}} DTEND:{{$event.End|icstime}} DTSTAMP:{{now|icstime}}