Added CALNAME prop

This commit is contained in:
Asaf Gartner 2024-01-28 19:27:25 +02:00
parent 8bc4b5a66c
commit d347b42e44
1 changed files with 5 additions and 0 deletions

View File

@ -363,6 +363,10 @@ func newHMNCalendar() *ical.Calendar {
version.SetText("1.0")
cal.Props.Set(version)
name := ical.NewProp("X-WR-CALNAME")
name.SetText("Handmade Network")
cal.Props.Set(name)
return cal
}
@ -371,6 +375,7 @@ func emptyCalendarString() []byte {
empty := `BEGIN:VCALENDAR
VERSION:1.0
PRODID:Handmade Network
X-WR-CALNAME:Handmade Network
END:VCALENDAR
`