apple / ccs-caldavtester

CalDAV/CardDAV Testing Framework used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
57 stars 36 forks source link

Use substitution for timezone specs and ids #7

Open macosforgebot opened 14 years ago

macosforgebot commented 14 years ago

douglm@… originally submitted this as ticket:372


Allows us to keep them up to date or change them as desired. For example - added to serverinfo.xml

        <substitution>
            <key>$tzspecUSE:</key>
            <value>BEGIN:VTIMEZONE
TZID:US/Eastern
LAST-MODIFIED:20040110T032845Z
BEGIN:STANDARD
DTSTART:20001026T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZNAME:EST
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20000404T020000
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
TZNAME:EDT
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
END:DAYLIGHT
END:VTIMEZONE
             </value>
        </substitution>

        <substitution>
            <key>$tzidUSE:</key>
            <value>US/Eastern</value>
        </substitution>

And changed CalDAVTester/Resource/CalDAV/implicit/deletecalendar/8.ics to be

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
$tzspecUSE:
BEGIN:VEVENT
UID:event5@ninevah.local
DTSTART;TZID=$tzidUSE::20060101T120000
...
macosforgebot commented 14 years ago

douglm@… originally submitted this as comment:1:⁠ticket:372


Slightly incorrect - tzspec def should have ended

END:VTIMEZONE</value>
macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:2:⁠ticket:372

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:3:⁠ticket:372

macosforgebot commented 11 years ago

@wsanchez originally submitted this as comment:4:⁠ticket:372