[Zope3-checkins] SVN: Zope3/trunk/src/zope/formlib/form.py Fixed: tzinfo argument must be None or of a tzinfo subclass, not type 'type'

Ruslan Spivak rspivak at nuxeo.com
Thu Oct 6 17:38:18 EDT 2005


Log message for revision 38838:
  Fixed: tzinfo argument must be None or of a tzinfo subclass, not type 'type'

Changed:
  U   Zope3/trunk/src/zope/formlib/form.py

-=-
Modified: Zope3/trunk/src/zope/formlib/form.py
===================================================================
--- Zope3/trunk/src/zope/formlib/form.py	2005-10-06 21:12:51 UTC (rev 38837)
+++ Zope3/trunk/src/zope/formlib/form.py	2005-10-06 21:38:18 UTC (rev 38838)
@@ -781,7 +781,7 @@
             try:
                 time_zone = idatetime.ITZInfo(self.request)
             except TypeError:
-                time_zone = type(pytz.UTC)
+                time_zone = pytz.UTC
 
             status = _("Updated on ${date_time}",
                        mapping={'date_time':



More information about the Zope3-Checkins mailing list