#
# PUT an event with a non-standard timezone
#
# There is no CalDAV defined behaviour for this.
#
TYPE=PUT
URL=http://mycaldav/caldav.php/user1/home/PUT-eastern-time.ics
HEADER=User-Agent: DAViCal Testing/0.9.x
HEADER=Content-Type: text/calendar; charset=utf-8

HEAD

BEGINDATA
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//Ximian//NONSGML Evolution Calendar//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(UTC-05:00) Eastern Time (US & Canada)
BEGIN:STANDARD
DTSTART:16010101T020000
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=11
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T020000
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=2SU;BYMONTH=3
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
UID:PUT-eastern-time
DTSTAMP:20101009T214524Z
SUMMARY;LANGUAGE=en-US:Psychic's Anonymous Meeting
DTSTART;TZID="(UTC-05:00) Eastern Time (US & Canada)":20110912T110000
DTEND;TZID="(UTC-05:00) Eastern Time (US & Canada)":20110912T113000
LOCATION:You will know when you arrive
CREATED:20101010T014639
LAST-MODIFIED:20101010T014639
END:VEVENT
END:VCALENDAR
ENDDATA

QUERY
SELECT caldav_data.user_no, caldav_data.dav_etag, caldav_type, logged_user, 
       uid, dtstamp, dtstart at time zone olson_name as dtstart, dtend at time zone olson_name as dtend, due, summary, location,
       description, priority, class, transp, rrule, url,
       percent_complete, tz_id, status,
       caldav_data AS " CalDAV Data", calendar_item.last_modified
FROM caldav_data JOIN calendar_item USING(dav_name) JOIN timezones ON (tz_id=tzid)
WHERE caldav_data.dav_name =
'/user1/home/PUT-eastern-time.ics'
ENDQUERY
