[CMF-checkins] CVS: Products/CMFCalendar/skins/zpt_calendar - calendarBox.pt:1.3

Stefan H. Holek stefan at epy.co.at
Sat Jul 31 14:29:54 EDT 2004


Update of /cvs-repository/Products/CMFCalendar/skins/zpt_calendar
In directory cvs.zope.org:/tmp/cvs-serv23429/CMFCalendar/skins/zpt_calendar

Modified Files:
	calendarBox.pt 
Log Message:
Code assumed US datetime format. At least since Zope 2.7 users can change that.


=== Products/CMFCalendar/skins/zpt_calendar/calendarBox.pt 1.2 => 1.3 ===
--- Products/CMFCalendar/skins/zpt_calendar/calendarBox.pt:1.2	Fri May 10 06:40:00 2002
+++ Products/CMFCalendar/skins/zpt_calendar/calendarBox.pt	Sat Jul 31 14:29:23 2004
@@ -28,8 +28,8 @@
                 <a href="#" class="CalendarArrow" tal:attributes="href python:here.getPreviousMonthLink(request.URL0, month, year)">&laquo;</a>
             </th>
 
-            <th colspan="5" tal:define="date string:$month/1/$year">
-              <span tal:replace="python:DateTime(date).strftime('%B').capitalize()"/> <span tal:replace="python:DateTime(date).year()"/>
+            <th colspan="5" tal:define="date python:DateTime(int(year), int(month), 1)">
+              <span tal:replace="python:date.strftime('%B').capitalize()"/> <span tal:replace="python:date.year()"/>
             </th>
 
             <th>
@@ -84,4 +84,4 @@
  </div>
 </div>
 
-</html>
\ No newline at end of file
+</html>



More information about the CMF-checkins mailing list