mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-31 19:50:55 +00:00
Convert EXDATE and RDATE to same type as DTSTART
Fixes #1146 Closes #1199
This commit is contained in:
parent
dc3a733f04
commit
ef9a2fbab8
3 changed files with 65 additions and 2 deletions
33
radicale/tests/static/event_mixed_datetime_and_date.ics
Normal file
33
radicale/tests/static/event_mixed_datetime_and_date.ics
Normal file
|
@ -0,0 +1,33 @@
|
|||
BEGIN:VCALENDAR
|
||||
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
|
||||
VERSION:2.0
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Europe/Paris
|
||||
X-LIC-LOCATION:Europe/Paris
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+0100
|
||||
TZOFFSETTO:+0200
|
||||
TZNAME:CEST
|
||||
DTSTART:19700329T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+0200
|
||||
TZOFFSETTO:+0100
|
||||
TZNAME:CET
|
||||
DTSTART:19701025T030000
|
||||
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20130902T150157Z
|
||||
LAST-MODIFIED:20130902T150158Z
|
||||
DTSTAMP:20130902T150158Z
|
||||
UID:event_mixed_datetime_and_date
|
||||
SUMMARY:Event
|
||||
DTSTART;TZID=Europe/Paris:20130901T180000
|
||||
DTEND;TZID=Europe/Paris:20130901T190000
|
||||
RRULE:FREQ=DAILY;COUNT=3
|
||||
EXDATE;VALUE=DATE:20130902
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
|
@ -97,6 +97,12 @@ permissions: RrWw""")
|
|||
assert xml.tag == xmlutils.make_clark("D:error")
|
||||
assert xml.find(xmlutils.make_clark("C:no-uid-conflict")) is not None
|
||||
|
||||
def test_add_event_with_mixed_datetime_and_date(self) -> None:
|
||||
"""Test event with DTSTART as DATE-TIME and EXDATE as DATE."""
|
||||
self.mkcalendar("/calendar.ics/")
|
||||
event = get_file_content("event_mixed_datetime_and_date.ics")
|
||||
self.put("/calendar.ics/event.ics", event)
|
||||
|
||||
def test_add_todo(self) -> None:
|
||||
"""Add a todo."""
|
||||
self.mkcalendar("/calendar.ics/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue