[CMF-checkins] CVS: Products/CMFCalendar - CalendarTool.py:1.14
Stefan H. Holek
stefan at epy.co.at
Tue Aug 3 06:07:48 EDT 2004
Update of /cvs-repository/Products/CMFCalendar
In directory cvs.zope.org:/tmp/cvs-serv24313/CMFCalendar
Modified Files:
CalendarTool.py
Log Message:
- Replaced a potentially ambiguous datetime format.
- Wrote tests to show that #65/#159 is actually fixed.
- Updated CHANGES.txt
=== Products/CMFCalendar/CalendarTool.py 1.13 => 1.14 ===
--- Products/CMFCalendar/CalendarTool.py:1.13 Mon Aug 2 18:21:55 2004
+++ Products/CMFCalendar/CalendarTool.py Tue Aug 3 06:07:17 2004
@@ -130,12 +130,9 @@
""" given a year and month return a list of days that have events """
year=int(year)
month=int(month)
- first_date=DateTime(year, month, 1)
last_day=calendar.monthrange(year, month)[1]
- ## This line was cropping the last day of the month out of the
- ## calendar when doing the query
- ## last_date=DateTime(year, month, last_day)
- last_date = DateTime('%d/%d/%s 23:59:59' % (month, last_day , year))
+ first_date=self.getBeginAndEndTimes(1, month, year)[0]
+ last_date=self.getBeginAndEndTimes(last_day, month, year)[1]
query = self.portal_catalog(
portal_type=self.calendar_types,
More information about the CMF-checkins
mailing list