我想将我的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
答案 0 :(得分:0)
您的属性似乎是随机排列的,并且缺少BEGIN:VEVENT / END:VEVENT。
iCalendar遵循固定的结构,其中组件作为属性(以及其他可能的组件)的容器。参见https://tools.ietf.org/html/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
事实上,由于您的活动似乎在使用zulu时间,因此您甚至可以跳过整个VTIMEZONE / STANDARD,然后直接参加
BEGIN:VCALENDAR
... VCALENDAR properties go here
BEGIN:VEVENT
... VEVENT properties go here
END:VEVENT
END:VCALENDAR