【问题标题】:iCal file not importingiCal 文件未导入
【发布时间】:2013-12-15 17:06:55
【问题描述】:

我在 python 脚本中创建了一个返回 ical 文件的函数,但是当我尝试将其导入busycal时,它显示“没有导入事件”。我已经检查并仔细检查了,但我找不到任何问题。这是一个不起作用的 iCal 文件的(简短)示例:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Ben//classtoical
X-WR-CALNAME:Classes
X-WR-TIMEZONE:Europe/Berlin
BEGIN:VEVENT
DTSTAMP:20131129T141052Z
UID:20131129141052-50157600408285@mydomain.com
DTSTART;TZID=Europe/Berlin:20131204T18000
DTEND;TZID=Europe/Berlin:20131204T20000
SUMMARY:Contemporary Philosophy
LOCATION:F.4.113
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20131129T141052Z
UID:20131129141052-79836541033229@mydomain.com
DTSTART;TZID=Europe/Berlin:20131202T18000
DTEND;TZID=Europe/Berlin:20131202T20000
SUMMARY:Logic and Philosophy of Science
LOCATION:E.2.01
END:VEVENT
END:VCALENDAR

【问题讨论】:

    标签: icalendar


    【解决方案1】:

    我发现了问题的原因; DTSTART 和 DTEND 日期只有 1 个零来表示秒,而不是所需的 2。

    原始文件:

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//Ben//classtoical
    X-WR-CALNAME:Classes
    X-WR-TIMEZONE:Europe/Berlin
    BEGIN:VEVENT
    DTSTAMP:20131129T141052Z
    UID:20131129141052-50157600408285@mydomain.com
    DTSTART;TZID=Europe/Berlin:20131204T18000
    DTEND;TZID=Europe/Berlin:20131204T20000
    SUMMARY:Contemporary Philosophy
    LOCATION:F.4.113
    END:VEVENT
    BEGIN:VEVENT
    DTSTAMP:20131129T141052Z
    UID:20131129141052-79836541033229@mydomain.com
    DTSTART;TZID=Europe/Berlin:20131202T18000
    DTEND;TZID=Europe/Berlin:20131202T20000
    SUMMARY:Logic and Philosophy of Science
    LOCATION:E.2.01
    END:VEVENT
    END:VCALENDAR
    

    工作文件:

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//Ben//classtoical
    X-WR-CALNAME:Classes
    X-WR-TIMEZONE:Europe/Berlin
    BEGIN:VEVENT
    DTSTAMP:20131129T141052Z
    UID:20131129141052-50157600408285@mydomain.com
    DTSTART;TZID=Europe/Berlin:20131204T180000
    DTEND;TZID=Europe/Berlin:20131204T200000
    SUMMARY:Contemporary Philosophy
    LOCATION:F.4.113
    END:VEVENT
    BEGIN:VEVENT
    DTSTAMP:20131129T141052Z
    UID:20131129141052-79836541033229@mydomain.com
    DTSTART;TZID=Europe/Berlin:20131202T180000
    DTEND;TZID=Europe/Berlin:20131202T200000
    SUMMARY:Logic and Philosophy of Science
    LOCATION:E.2.01
    END:VEVENT
    END:VCALENDAR
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-20
      • 1970-01-01
      • 2020-09-20
      • 1970-01-01
      • 2012-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多