自定义 iCal 日历未在 Mac 上创建通知

custom iCal Calendar not creating notifications on Mac

对于具有集成日历的客户网站,我们还创建了一个 iCal URL,用户可以使用它来将日历导入到他们自己的客户端中。 我面临的问题是,日历不会在 mac-日历上创建任何通知,我真的不知道为什么。

我已经检查了我的私人 gmail-calendar ics,但找不到我遗漏的任何相关字段。这是我们的代码生成的内容:

BEGIN:VCALENDAR
CALSCALE:GREGORIAN
METHOD:PUBLISH
PRODID:-//github.com/rianjs/ical.net//NONSGML ical.net 4.0//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:W. Europe Standard Time
X-LIC-LOCATION:Europe/Berlin
BEGIN:STANDARD
DTSTART:20161030T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20170326T020000
RRULE:FREQ=YEARLY;BYDAY=4SU;BYMONTH=3
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20180504T130321
DESCRIPTION:Appointment2Annotiation
DTEND:20180514T130320
DTSTAMP:20181001T125831Z
DTSTART:20180513T130320
LOCATION:Teststraße 12\, 4050 Traun
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Appointment2 - NACHNAME 54 Vorname 54
TRANSP:OPAQUE
UID:dd70978d-bbf7-4ff3-b7b3-00a37c2772fc
END:VEVENT
...
some more events
...

BEGIN:VEVENT
CREATED:20180504T130321
DESCRIPTION:Vorname 34\, Nachname 34\, +43 664 933 934\, email34@test.at\n
 SVorname 34\, SNachname 34\, \, \n \nHochzeit\n20.10.2018 00:00:00 - 22.1
 0.2018 00:00:00 Teststraße 12\, 4050 Traun\n \nInterne Test Notizen...\n
DTEND;VALUE=DATE:20181022
DTSTAMP:20181001T125831Z
DTSTART;VALUE=DATE:20181020
LOCATION:Teststraße 12\, 4050 Traun
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:NACHNAME 34 Vorname 34 - Hochzeit
TRANSP:OPAQUE
UID:0e57c72f-2b71-4639-b967-15f1295e9d71
END:VEVENT
END:VCALENDAR

任何人对我可能遗漏或做错的事情有一些建议吗?

经过一个漫长的夜晚,我终于找到了答案。 只需将日期格式更改为 UTC 即可解决主要问题。 生成的 ics 结构为:

BEGIN:VCALENDAR
CALSCALE:GREGORIAN
METHOD:PUBLISH
PRODID:-//github.com/rianjs/ical.net//NONSGML ical.net 4.0//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:W. Europe Standard Time
X-LIC-LOCATION:Europe/Berlin
BEGIN:STANDARD
DTSTART:20161030T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20170326T020000
RRULE:FREQ=YEARLY;BYDAY=4SU;BYMONTH=3
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20181001T082504Z
DESCRIPTION:Max\, Mustermann\, \, email@gmail.com\n \nHochzeit\
 n10.10.2018 13:00:00 - 10.10.2018 17:00:00 Hochzeitsanprobe - Musterstraß
 e 13\n \n\n
DTEND:20181010T150000Z
DTSTAMP:20181002T082215Z
DTSTART:20181010T110000Z
LAST-MODIFIED:20181001T082504Z
LOCATION:Hochzeitsanprobe - Musterstraße 13
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:MUSTERMANN Max - Hochzeit
TRANSP:OPAQUE
UID:56f627db-a84f-4901-bb14-a6f513854a52
END:VEVENT
END:VCALENDAR

希望这对以后的人有所帮助