mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-30 16:00:25 +00:00
72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
#
|
|
# PUT a Mozilla style event into the database
|
|
#
|
|
TYPE=PUT
|
|
URL=http://mycaldav/caldav.php/user1/home/e70576e9-c1e0-431e-a507-0386fd82f223.ics
|
|
HEADER=User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8pre) Gecko/20071023 Sunbird/0.7
|
|
HEADER=Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
|
|
HEADER=Accept-Language: en-us,en;q=0.5
|
|
HEADER=Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
|
|
HEADER=Content-Type: text/calendar; charset=utf-8
|
|
|
|
HEAD
|
|
|
|
|
|
BEGINDATA
|
|
BEGIN:VCALENDAR
|
|
PRODID:-//Mozilla Calendar//NONSGML Sunbird//EN
|
|
VERSION:2.0
|
|
BEGIN:VTIMEZONE
|
|
TZID:/mozilla.org/20070129_1/Antarctica/McMurdo
|
|
X-LIC-LOCATION:Antarctica/McMurdo
|
|
BEGIN:STANDARD
|
|
TZOFFSETFROM:+1300
|
|
TZOFFSETTO:+1200
|
|
TZNAME:NZST
|
|
DTSTART:19700315T030000
|
|
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=3SU;BYMONTH=3
|
|
END:STANDARD
|
|
BEGIN:DAYLIGHT
|
|
TZOFFSETFROM:+1200
|
|
TZOFFSETTO:+1300
|
|
TZNAME:NZDT
|
|
DTSTART:19701004T020000
|
|
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=10
|
|
END:DAYLIGHT
|
|
END:VTIMEZONE
|
|
BEGIN:VEVENT
|
|
CREATED:20071203T202630Z
|
|
LAST-MODIFIED:20071203T202834Z
|
|
DTSTAMP:20071203T202630Z
|
|
UID:e70576e9-c1e0-431e-a507-0386fd82f223
|
|
SUMMARY:Morning Meeting
|
|
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU,TH
|
|
DTSTART;TZID=/mozilla.org/20070129_1/Antarctica/McMurdo:20071211T074500
|
|
DTEND;TZID=/mozilla.org/20070129_1/Antarctica/McMurdo:20071211T083000
|
|
X-MOZ-LOCATIONPATH:e70576e9-c1e0-431e-a507-0386fd82f223.ics
|
|
LOCATION:Suzies Coffee Lounge
|
|
DESCRIPTION:Twice-weekly breakfast meeting
|
|
CATEGORIES:Business
|
|
BEGIN:VALARM
|
|
TRIGGER;VALUE=DURATION:-PT10M
|
|
DESCRIPTION:Mozilla Alarm: Morning Meeting
|
|
ACTION:DISPLAY
|
|
END:VALARM
|
|
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",
|
|
((current_timestamp AT TIME ZONE 'GMT' - calendar_item.last_modified) < '2 seconds'::interval) AS "~ Modified Now"
|
|
FROM caldav_data JOIN calendar_item USING(dav_name) JOIN timezones ON (tz_id=tzid)
|
|
WHERE caldav_data.dav_name =
|
|
'/user1/home/e70576e9-c1e0-431e-a507-0386fd82f223.ics';
|
|
ENDQUERY
|
|
|