davical/testing/tests/regression-suite/2300-DST-conversion.test
Andrew Ruthven 7c47658bee Make the curl and SQL requests when we see them
This allows us to have more complex test files where an action is taken, then
we test something, then another action is taken, etc.

Changes to test files are required so that URL is defined after all the
required settings are set.

Changes to the result files are either whitespace changes due to above logic
changes, or printing out a SQL Result header before each result. I figured it
was useful.
2024-04-01 22:57:10 +13:00

45 lines
870 B
Plaintext

#
# Create an event that stradles a daylight savings (DST) change.
#
TYPE=PUT
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
URL=http://regression.host/caldav.php/user1/home/dst-change.ics