web/formfields.py
changeset 4241 da919ea92880
parent 4229 1c8e92afb94b
child 4251 3c6569be1f86
--- a/web/formfields.py	Thu Jan 14 11:13:22 2010 +0100
+++ b/web/formfields.py	Thu Jan 14 11:14:40 2010 +0100
@@ -672,7 +672,7 @@
         # directly, so handle that case :
         if isinstance(date, basestring):
             try:
-                date = form.parse_datetime(wdgdate, 'Date')
+                date = form.parse_datetime(date, 'Date')
             except ValueError, ex:
                 raise ProcessFormError(unicode(ex))
         return date
@@ -688,7 +688,7 @@
         # directly, so handle that case :
         if isinstance(date, basestring):
             try:
-                date = form.parse_datetime(wdgdate, 'Datetime')
+                date = form.parse_datetime(date, 'Datetime')
             except ValueError, ex:
                 raise ProcessFormError(unicode(ex))
         return date
@@ -705,7 +705,7 @@
         # directly, so handle that case :
         if isinstance(time, basestring):
             try:
-                time = form.parse_datetime(wdgdate, 'Time')
+                time = form.parse_datetime(time, 'Time')
             except ValueError, ex:
                 raise ProcessFormError(unicode(ex))
         return time