[CalendarServer-changes] [10197] CalendarServer/branches/release/CalendarServer-4.3-dev/txdav/common /datastore/sql_legacy.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 3 12:25:40 PST 2013


Revision: 10197
          http://trac.calendarserver.org//changeset/10197
Author:   cdaboo at apple.com
Date:     2013-01-03 12:25:40 -0800 (Thu, 03 Jan 2013)
Log Message:
-----------
Fix off-by-one error during time-range re-expand test.

Modified Paths:
--------------
    CalendarServer/branches/release/CalendarServer-4.3-dev/txdav/common/datastore/sql_legacy.py

Modified: CalendarServer/branches/release/CalendarServer-4.3-dev/txdav/common/datastore/sql_legacy.py
===================================================================
--- CalendarServer/branches/release/CalendarServer-4.3-dev/txdav/common/datastore/sql_legacy.py	2013-01-03 19:46:04 UTC (rev 10196)
+++ CalendarServer/branches/release/CalendarServer-4.3-dev/txdav/common/datastore/sql_legacy.py	2013-01-03 20:25:40 UTC (rev 10197)
@@ -1254,6 +1254,7 @@
                 maxDate, isStartDate = filter.getmaxtimerange()
                 if maxDate:
                     maxDate = maxDate.duplicate()
+                    maxDate.offsetDay(1)
                     maxDate.setDateOnly(True)
                     upperLimit = today + PyCalendarDuration(days=config.FreeBusyIndexExpandMaxDays)
                     if maxDate > upperLimit:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130103/464ba9d2/attachment.html>


More information about the calendarserver-changes mailing list