[CalendarServer-changes] [12556] CalendarServer/trunk/twistedcaldav/timezonestdservice.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:17:02 PDT 2014
Revision: 12556
http://trac.calendarserver.org//changeset/12556
Author: cdaboo at apple.com
Date: 2014-02-04 11:08:46 -0800 (Tue, 04 Feb 2014)
Log Message:
-----------
More updates to latest spec changes.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/timezonestdservice.py
Modified: CalendarServer/trunk/twistedcaldav/timezonestdservice.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/timezonestdservice.py 2014-02-04 19:07:50 UTC (rev 12555)
+++ CalendarServer/trunk/twistedcaldav/timezonestdservice.py 2014-02-04 19:08:46 UTC (rev 12556)
@@ -369,7 +369,7 @@
raise HTTPError(JSONResponse(
responsecode.NOT_FOUND,
{
- "error": "missing-tzid",
+ "error": "tzid-not-found",
"description": "Tzid could not be found",
}
))
@@ -402,7 +402,7 @@
if len(start) > 1:
raise ValueError()
elif len(start) == 1:
- start = DateTime.parseText(start[0])
+ start = DateTime.parseText("{}0101".format(int(start[0])))
else:
start = DateTime.getToday()
start.setDay(1)
@@ -421,7 +421,7 @@
if len(end) > 1:
raise ValueError()
elif len(end) == 1:
- end = DateTime.parseText(end[0])
+ end = DateTime.parseText("{}0101".format(int(end[0])))
else:
end = DateTime.getToday()
end.setDay(1)
@@ -444,7 +444,7 @@
raise HTTPError(JSONResponse(
responsecode.NOT_FOUND,
{
- "error": "missing-tzid",
+ "error": "tzid-not-found",
"description": "Tzid could not be found",
}
))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/5cf9266d/attachment.html>
More information about the calendarserver-changes
mailing list