[CalendarServer-changes] [8724] CalendarServer/trunk/twistedcaldav/scheduling

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 17 09:42:18 PST 2012


Revision: 8724
          http://trac.macosforge.org/projects/calendarserver/changeset/8724
Author:   cdaboo at apple.com
Date:     2012-02-17 09:42:16 -0800 (Fri, 17 Feb 2012)
Log Message:
-----------
Fix iTIP change to preserve timezones.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/scheduling/itip.py
    CalendarServer/trunk/twistedcaldav/scheduling/test/test_itip.py

Modified: CalendarServer/trunk/twistedcaldav/scheduling/itip.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/itip.py	2012-02-17 17:11:35 UTC (rev 8723)
+++ CalendarServer/trunk/twistedcaldav/scheduling/itip.py	2012-02-17 17:42:16 UTC (rev 8724)
@@ -720,6 +720,8 @@
 
         # Remove all components which are missing the attendee
         for component in itip.subcomponents():
+            if component.name() in ignoredComponents:
+                continue
             if not component.getAttendeeProperty((attendee,)):
                 itip.removeComponent(component)
 

Modified: CalendarServer/trunk/twistedcaldav/scheduling/test/test_itip.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/test/test_itip.py	2012-02-17 17:11:35 UTC (rev 8723)
+++ CalendarServer/trunk/twistedcaldav/scheduling/test/test_itip.py	2012-02-17 17:42:16 UTC (rev 8724)
@@ -1,5 +1,5 @@
 ##
-# Copyright (c) 2005-2011 Apple Inc. All rights reserved.
+# Copyright (c) 2005-2012 Apple Inc. All rights reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -1969,6 +1969,23 @@
 CALSCALE:GREGORIAN
 METHOD:REPLY
 PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VTIMEZONE
+TZID:America/Los_Angeles
+BEGIN:DAYLIGHT
+DTSTART:20070311T020000
+RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3
+TZNAME:PDT
+TZOFFSETFROM:-0800
+TZOFFSETTO:-0700
+END:DAYLIGHT
+BEGIN:STANDARD
+DTSTART:20071104T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11
+TZNAME:PST
+TZOFFSETFROM:-0700
+TZOFFSETTO:-0800
+END:STANDARD
+END:VTIMEZONE
 BEGIN:VEVENT
 UID:04405DDD-C938-46FC-A4CE-8573613BEA39
 RECURRENCE-ID;TZID=America/Los_Angeles:20100826T130000
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120217/ad64800f/attachment.html>


More information about the calendarserver-changes mailing list