web/formfields.py
changeset 4101 7fa86fa51229
parent 4069 5d149ba65dd0
child 4110 8728d8c95985
--- a/web/formfields.py	Wed Dec 09 19:27:24 2009 +0100
+++ b/web/formfields.py	Wed Dec 09 19:27:46 2009 +0100
@@ -506,7 +506,7 @@
         # but for some widgets, it might be simpler to return date objects
         # directly, so handle that case :
         if isinstance(date, basestring):
-            date = form.parse_datetime(wdgdate, 'Datetime')
+            date = form.parse_datetime(date, 'Datetime')
         return date
 
 class TimeField(DateField):