Ical 导入事件不工作事件我的 ical 文件没有错误

Ical import event not working event my ical file has no error

我想将我的 ical 事件导入 google 日历,但它不起作用,它说导入了 0 个事件,我用 ical 验证程序检查过,它说 ical 文件没有问题,有人可以吗帮我解决这个问题,这是我的数据

BEGIN:VCALENDAR VERSION:2.0 PRODID:-//hacksw/handcal//NONSGML v1.0//EN BEGIN:VTIMEZONE TZID:America/New_York BEGIN:STANDARD LOCATION:Ponton 2 Quilles | Demi-Journée (Avant-midi) DESCRIPTION:Ponton 2 Quilles | Demi-Journée (Avant-midi) DTSTART:20190619T070000Z DTEND:20190619T120000Z TZOFFSETFROM:-0400 TZOFFSETTO:-0500 TZNAME:EST SUMMARY:Ponton 2 Quilles | Demi-Journée (Avant-midi) URL:https://fassettmarine.com DTSTAMP:20190619T070000Z UID:5cf75576d13b6 END:STANDARD END:VTIMEZONE BEGIN:STANDARD LOCATION:Test Product For Tako DESCRIPTION:Test Product For Tako DTSTART:20190517T160607Z DTEND:20190518T160611Z TZOFFSETFROM:-0400 TZOFFSETTO:-0500 TZNAME:EST SUMMARY:Test Product For Tako URL:https://fassettmarine.com DTSTAMP:20190517T160607Z UID:5cf75576d13b1 END:STANDARD END:VCALENDAR

看起来您的属性顺序是随机的并且缺少 BEGIN:VEVENT/END:VEVENT。

iCalendar 遵循固定结构,组件作为属性的容器(可能还有其他组件)。参见 https://www.rfc-editor.org/rfc/rfc5545#section-3.6

所以你应该有这样的东西:

BEGIN:VCALENDAR
... VCALENDAR properties go here
BEGIN:VTIMEZONE
... VTIMEZONE properties go here
BEGIN:STANDARD
... STANDARD properties go here
END:STANDARD
BEGIN:DAYLIGHT
...
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
... VEVENT properties go here
END:VEVENT
END:VCALENDAR

事实上,由于您的活动似乎使用的是祖鲁时间,您甚至可以跳过整个 VTIMEZONE/STANDARD,直接前往

BEGIN:VCALENDAR
... VCALENDAR properties go here
BEGIN:VEVENT
... VEVENT properties go here
END:VEVENT
END:VCALENDAR