Simple-Calendar icon indicating copy to clipboard operation
Simple-Calendar copied to clipboard

Cant import .ics file if DURATION argument is set before DTSTART

Open HenningCode opened this issue 2 years ago • 0 comments

Hello guys,

i created .ics files with icspy package. I tested these created .ics files with the google calendar and they both work. I wanted to use the finished .ics file with Simple-Calendar and they didnt work with the error massage that the meeting cant be in the past. I manually swaped the DTSTART and DURATION Keyword and the .ics worked fine.

These are the two .ics files: This does not work:

BEGIN:VCALENDAR

VERSION:2.0

PRODID:ics.py - http://git.io/lLljaA

BEGIN:VEVENT

BEGIN:VALARM

ACTION:DISPLAY

DESCRIPTION:This is an event reminder

TRIGGER:-PT2H

END:VALARM

BEGIN:VALARM

ACTION:DISPLAY

DESCRIPTION:This is an event reminder

TRIGGER:-P1D

END:VALARM

DESCRIPTION:FOO

DURATION:PT4H

DTSTART:20231121T184500Z

SUMMARY:BAR

UID:[email protected]

END:VEVENT

END:VCALENDAR

This does work:

BEGIN:VCALENDAR

VERSION:2.0

PRODID:ics.py - http://git.io/lLljaA

BEGIN:VEVENT

BEGIN:VALARM

ACTION:DISPLAY

DESCRIPTION:This is an event reminder

TRIGGER:-PT2H

END:VALARM

BEGIN:VALARM

ACTION:DISPLAY

DESCRIPTION:This is an event reminder

TRIGGER:-P1D

END:VALARM

DESCRIPTION:FOO

DTSTART:20231121T184500Z

DURATION:PT4H

SUMMARY:BAR

UID:[email protected]

END:VEVENT

END:VCALENDAR

HenningCode avatar Oct 04 '23 16:10 HenningCode