master
Evan Chen 2021-12-26 17:40:57 +08:00
parent 7d39b81824
commit 00bb55b5c3
1 changed files with 2 additions and 4 deletions

View File

@ -27,8 +27,7 @@ TZNAME:CST
DTSTART:19700101T000000
END:STANDARD
END:VTIMEZONE
{{with .Events}}{{ if gt (len .) 0 }}{{ range $event := . }}
BEGIN:VEVENT
{{with .Events}}{{ if gt (len .) 0 }}{{ range $event := . }}BEGIN:VEVENT
DTSTART:{{$event.Start|icstime}}
DTEND:{{$event.End|icstime}}
DTSTAMP:{{now|icstime}}
@ -41,8 +40,7 @@ SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:{{$event.Name}}
TRANSP:TRANSPARENT
END:VEVENT
{{end}}{{end}}{{end}}
END:VEVENT{{end}}{{end}}{{end}}
END:VCALENDAR`
var tmpl *template.Template