[CalendarServer-changes] [3513] CalendarServer/trunk/twistedcaldav/ical.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 11 12:18:36 PST 2008


Revision: 3513
          http://trac.macosforge.org/projects/calendarserver/changeset/3513
Author:   cdaboo at apple.com
Date:     2008-12-11 12:18:36 -0800 (Thu, 11 Dec 2008)
Log Message:
-----------
Missed normalizing the RECURRENCE-ID.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/ical.py

Modified: CalendarServer/trunk/twistedcaldav/ical.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/ical.py	2008-12-11 20:02:00 UTC (rev 3512)
+++ CalendarServer/trunk/twistedcaldav/ical.py	2008-12-11 20:18:36 UTC (rev 3513)
@@ -1707,6 +1707,14 @@
                 self.removeProperty(duration)
                 self.addProperty(Property("DTEND", newdtend))
 
+            rid = self.getProperty("RECURRENCE-ID")
+            if rid is not None:
+                rid.setValue(normalizeToUTC(rid.value()))
+                try:
+                    del rid.params()["TZID"]
+                except KeyError:
+                    pass
+
     def normalizePropertyValueLists(self, propname):
         """
         Convert properties that have a list of values into single properties, to make it easier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081211/588ab1a9/attachment.html>


More information about the calendarserver-changes mailing list