无法使用DELETE方法.ics文件

时间:2019-12-05 20:02:11

标签: calendar icalendar

我已经阅读了许多关于Stackoverflow的问答,我必须做错什么:我无法创建.ics文件,删除以前的事件。

例如,这个最小的.ics文件成功创建了一个event(例如在OSX的iCal中)

BEGIN:VCALENDAR
METHOD:PUBLISH
VERSION:2.0
PRODID:-//MLS/Calendar//FR
BEGIN:VEVENT
ORGANIZER:mailto:me@gmail.com
DTSTAMP;TZID=Europe/Paris:20191205T080000
DTSTART;TZID=Europe/Paris:20191205T084500
DURATION:PT30M
SEQUENCE:1
UID:abc@MLS
SUMMARY:A nice summary
LOCATION:A beautiful location
END:VEVENT
END:VCALENDAR

event成功地更新了同一事件:

BEGIN:VCALENDAR
METHOD:PUBLISH
VERSION:2.0
PRODID:-//MLS/Calendar//FR
BEGIN:VEVENT
ORGANIZER:mailto:me@gmail.com
DTSTAMP;TZID=Europe/Paris:20191205T080000
DTSTART;TZID=Europe/Paris:20191205T184500
DURATION:PT30M
SEQUENCE:2
UID:abc@MLS
SUMMARY:A nice summary
LOCATION:A beautiful location
END:VEVENT
END:VCALENDAR

但是我无法创建.ics文件删除(也在iCal OSX上);尝试时出现一种导入错误:

BEGIN:VCALENDAR
METHOD:CANCEL
VERSION:2.0
PRODID:-//MLS/Calendar//FR
BEGIN:VEVENT
ORGANIZER:mailto:me@gmail.com
STATUS:CANCELLED
DTSTAMP;TZID=Europe/Paris:20191205T080000
DTSTART;TZID=Europe/Paris:20191205T184500
DURATION:PT30M
SEQUENCE:2 (or sequence: 3)
UID:abc@MLS
SUMMARY:A nice summary
LOCATION:A beautiful location
END:VEVENT
END:VCALENDAR

您有什么线索吗? 谢谢。

0 个答案:

没有答案