[Checkins] SVN:	Products.CMFDefault/branches/2.2/Products/CMFDefault/formlib/schema.txt	DateTime 3.x is stricter about timezones in DateTime	comparisons. This avoids breaking just because the converted	DateTime ends up with a different zone name (e.g. GMT+0	instead of UTC)
    David Glick 
    cvs-admin at zope.org
       
    Thu Dec  6 06:40:18 UTC 2012
    
    
  
Log message for revision 128535:
  DateTime 3.x is stricter about timezones in DateTime comparisons. This avoids breaking just because the converted DateTime ends up with a different zone name (e.g. GMT+0 instead of UTC)
Changed:
  U   Products.CMFDefault/branches/2.2/Products/CMFDefault/formlib/schema.txt
-=-
Modified: Products.CMFDefault/branches/2.2/Products/CMFDefault/formlib/schema.txt
===================================================================
--- Products.CMFDefault/branches/2.2/Products/CMFDefault/formlib/schema.txt	2012-12-05 17:07:19 UTC (rev 128534)
+++ Products.CMFDefault/branches/2.2/Products/CMFDefault/formlib/schema.txt	2012-12-06 06:40:17 UTC (rev 128535)
@@ -111,7 +111,7 @@
       >>> adapter.foo_datetime == foo_datetime
       True
 
-      >>> foo_zope_datetime = DateTime(1970, 0)
+      >>> foo_zope_datetime = DateTime(1970, 0).toZone('GMT+0')
       >>> content.foo_datetime = foo_zope_datetime
       >>> foo_python_datetime = adapter.foo_datetime
       >>> adapter.foo_datetime = foo_python_datetime
    
    
More information about the checkins
mailing list