读取iCal文件只能获取最近的事件?

时间:2013-05-04 10:12:34

标签: calendar icalendar

我有一个由我正在做的项目生成的ics文件,它在http://severinghaus.org/projects/icv/中验证。当我尝试将其导入KOrganizer或Maya时,它只加载最近的事件。例如,ics文件是:

    BEGIN:VCALENDAR
    CALSCALE:GREGORIAN
    PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN
    VERSION:2.0
    BEGIN:VEVENT
    DTSTAMP:20130504T094939Z
    CREATED:20130503T230000Z
    LAST-MODIFIED:20130504T094939Z
    SUMMARY:Cat
    DTSTART:20130504T000000
    DTEND:20130504T010000
    TRANSP:OPAQUE
    END:VEVENT
    BEGIN:VEVENT
    DTSTAMP:20130504T094939Z
    CREATED:20130503T230000Z
    LAST-MODIFIED:20130504T094939Z
    SUMMARY:Foo
    DTSTART:20130504T000000
    DTEND:20130504T010000
    TRANSP:OPAQUE
    END:VEVENT
    BEGIN:VEVENT
    DTSTAMP:20130504T094939Z
    CREATED:20130503T230000Z
    LAST-MODIFIED:20130504T094939Z
    SUMMARY:Dog
    DTSTART:20130504T000000
    DTEND:20130504T010000
    TRANSP:OPAQUE
    END:VEVENT
    END:VCALENDAR

它会读取它,但只显示第一个事件。它还将ics文件更改为

    BEGIN:VCALENDAR
    PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN
    VERSION:2.0
    X-KDE-ICAL-IMPLEMENTATION-VERSION:1.0
    BEGIN:VEVENT
    DTSTAMP:20130504T094939Z
    CREATED:20130504T094939Z
    LAST-MODIFIED:20130504T094939Z
    SUMMARY:Cat
    DTSTART:20130504T000000
    DTEND:20130504T010000
    TRANSP:OPAQUE
    END:VEVENT
    END:VCALENDAR

有谁知道这是我的ics文件有错,还是Kontact?

1 个答案:

答案 0 :(得分:1)

嗯,首先,每个事件都必须有一个唯一的UID属性..