mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-18 01:31:21 +00:00
As pointed out in https://gitlab.com/davical-project/davical/-/merge_requests/86#note_1209576949 the issue is when events straddle the DST change.
44 lines
869 B
Plaintext
44 lines
869 B
Plaintext
#
|
|
# Create an event that stradles a daylight savings (DST) change.
|
|
#
|
|
TYPE=PUT
|
|
URL=http://regression.host/caldav.php/user1/home/dst-change.ics
|
|
HEAD
|
|
|
|
HEADER=Content-Type: text/calendar
|
|
|
|
BEGINDATA
|
|
BEGIN:VCALENDAR
|
|
VERSION:2.0
|
|
CALSCALE:GREGORIAN
|
|
BEGIN:VTIMEZONE
|
|
TZID:America/Los_Angeles
|
|
BEGIN:DAYLIGHT
|
|
TZOFFSETFROM:-0800
|
|
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
|
|
DTSTART:20070311T020000
|
|
TZNAME:PDT
|
|
TZOFFSETTO:-0700
|
|
END:DAYLIGHT
|
|
BEGIN:STANDARD
|
|
TZOFFSETFROM:-0700
|
|
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
|
|
DTSTART:20071104T020000
|
|
TZNAME:PST
|
|
TZOFFSETTO:-0800
|
|
END:STANDARD
|
|
END:VTIMEZONE
|
|
BEGIN:VEVENT
|
|
DTSTAMP:20220301T003348Z
|
|
TRANSP:OPAQUE
|
|
SUMMARY:Test timezone change
|
|
SEQUENCE:0
|
|
UID:dst-change
|
|
CREATED;TZID=America/Los_Angeles:20220228T163348
|
|
DESCRIPTION:
|
|
DTSTART;TZID=America/Los_Angeles:20220312T183000
|
|
DTEND;TZID=America/Los_Angeles:20220313T083000
|
|
END:VEVENT
|
|
END:VCALENDAR
|
|
ENDDATA
|