[Checkins] SVN: Products.CMFCalendar/trunk/Products/CMFCalendar/Event.py - use a more generic pattern

Yvo Schubbe y.2011 at wcm-solutions.de
Tue Feb 22 05:03:34 EST 2011


Log message for revision 120510:
  - use a more generic pattern

Changed:
  U   Products.CMFCalendar/trunk/Products/CMFCalendar/Event.py

-=-
Modified: Products.CMFCalendar/trunk/Products/CMFCalendar/Event.py
===================================================================
--- Products.CMFCalendar/trunk/Products/CMFCalendar/Event.py	2011-02-22 09:59:52 UTC (rev 120509)
+++ Products.CMFCalendar/trunk/Products/CMFCalendar/Event.py	2011-02-22 10:03:34 UTC (rev 120510)
@@ -121,7 +121,7 @@
             # Round time to a value that exists in buildTimes().
             dt = DateTime((int(DateTime()) / 1800 + 1) * 1800)
             # Parse time the same way as in edit(). The result is offset-naive.
-            start_date = DateTime(str(dt)[:16])
+            start_date = DateTime(str(dt).rsplit(' ', 1)[0])
         else:
             start_date = self._datify(start_date)
 



More information about the checkins mailing list