ical file containing multiple events doesn't import (single event works fine)

こ雲淡風輕ζ 提交于 2020-01-16 01:06:12

问题


I am trying (and failing) to import an ics file that contains multiple events. When I include just one event the import works (I'm using iCal). As soon as a second event is there it fails.

Each event is enclosed in BEGIN:VEVENT...END:VEVENT tags.

Can anyone tell me what's wrong with this ics file?

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Foobar Foobar//NONSGML Foobar Foobar//EN
METHOD:REQUEST
BEGIN:VEVENT
UID:PBSTI000000000017Z@foobar.com
DTSTAMP:20111210T161211Z
DTSTART:20111210T210000Z
DTEND:20111210T230000Z
TRANSP: TRANSPARENT
SUMMARY:Foobar - foobar
DESCRIPTION:Foobar - foobar
END:VEVENT
BEGIN:VEVENT
UID:PBSTI000000003246Z@foobar.com
DTSTAMP:20110824T161211Z
DTSTART:20110824T170000Z
DTEND:20110824T170000Z
TRANSP: TRANSPARENT
SUMMARY:Foobar - foobar
DESCRIPTION:Foobar - foobar
END:VEVENT
END:VCALENDAR

Thanks in advance.


回答1:


You can have a file with multiple events, and it will work fine if users explicitly import it (through File->Open->Import), but double-clicking imports only the first event.



来源:https://stackoverflow.com/questions/8319183/ical-file-containing-multiple-events-doesnt-import-single-event-works-fine

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!