[CMF-checkins] CVS: Products/CMFCalendar - CalendarTool.py:1.13

Jens Vagelpohl jens at dataflake.org
Mon Aug 2 18:21:55 EDT 2004


Update of /cvs-repository/Products/CMFCalendar
In directory cvs.zope.org:/tmp/cvs-serv10552

Modified Files:
	CalendarTool.py 
Log Message:
- (Lost) fix for issues 65 and 159: The determination of the date/time range
  constituting a specific month was faulty.


=== Products/CMFCalendar/CalendarTool.py 1.12 => 1.13 ===
--- Products/CMFCalendar/CalendarTool.py:1.12	Sat Jul 31 14:29:23 2004
+++ Products/CMFCalendar/CalendarTool.py	Mon Aug  2 18:21:55 2004
@@ -135,7 +135,7 @@
         ## 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=first_date + last_day
+        last_date = DateTime('%d/%d/%s 23:59:59' % (month, last_day , year))
 
         query = self.portal_catalog(
                         portal_type=self.calendar_types,



More information about the CMF-checkins mailing list