[CalendarServer-changes] [14030] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 30 07:24:55 PDT 2014


Revision: 14030
          http://trac.calendarserver.org//changeset/14030
Author:   cdaboo at apple.com
Date:     2014-09-30 07:24:55 -0700 (Tue, 30 Sep 2014)
Log Message:
-----------
tzdist fixes.

Modified Paths:
--------------
    CalendarServer/trunk/requirements-dev.txt
    CalendarServer/trunk/twistedcaldav/timezonestdservice.py

Modified: CalendarServer/trunk/requirements-dev.txt
===================================================================
--- CalendarServer/trunk/requirements-dev.txt	2014-09-30 14:19:47 UTC (rev 14029)
+++ CalendarServer/trunk/requirements-dev.txt	2014-09-30 14:24:55 UTC (rev 14030)
@@ -7,4 +7,4 @@
 mockldap
 q
 --editable svn+http://svn.calendarserver.org/repository/calendarserver/CalDAVClientLibrary/trunk@13420#egg=CalDAVClientLibrary
---editable svn+http://svn.calendarserver.org/repository/calendarserver/CalDAVTester/trunk@14021#egg=CalDAVTester
+--editable svn+http://svn.calendarserver.org/repository/calendarserver/CalDAVTester/trunk@14029#egg=CalDAVTester

Modified: CalendarServer/trunk/twistedcaldav/timezonestdservice.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/timezonestdservice.py	2014-09-30 14:19:47 UTC (rev 14029)
+++ CalendarServer/trunk/twistedcaldav/timezonestdservice.py	2014-09-30 14:24:55 UTC (rev 14030)
@@ -255,8 +255,8 @@
         """
 
         result = {
+            "version": "1",
             "info" : {
-                "version": "1",
                 "primary-source" if self.primary else "secondary_source": self.info_source,
                 "contacts" : [],
             },
@@ -415,17 +415,12 @@
 
         try:
             start = request.args.get("start", ())
-            if len(start) > 1:
+            if len(start) != 1:
                 raise ValueError()
             elif len(start) == 1:
                 if len(start[0]) != 20:
                     raise ValueError()
                 start = DateTime.parseText(start[0], fullISO=True)
-            else:
-                start = DateTime.getNowUTC()
-                start.setDay(1)
-                start.setMonth(1)
-                start.setHHMMSS(0, 0, 0)
         except ValueError:
             raise HTTPError(JSONResponse(
                 responsecode.BAD_REQUEST,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140930/7096974b/attachment-0001.html>


More information about the calendarserver-changes mailing list