--- a/web/formwidgets.py Fri Feb 05 14:58:46 2010 +0100
+++ b/web/formwidgets.py Fri Feb 05 15:44:34 2010 +0100
@@ -12,8 +12,9 @@
from logilab.mtconverter import xml_escape
from logilab.common.deprecation import deprecated
+from logilab.common.date import todatetime
-from cubicweb import tags, uilib, utils
+from cubicweb import tags, uilib
from cubicweb.web import stdmsgs, INTERNAL_FIELD_VALUE, ProcessFormError
class FieldWidget(object):
@@ -508,7 +509,7 @@
timestr = req.form.get(field.input_name(form, 'time')).strip() or None
if datestr is None:
return None
- date = utils.todatetime(req.parse_datetime(datestr, 'Date'))
+ date = todatetime(req.parse_datetime(datestr, 'Date'))
if timestr is None:
return date
time = req.parse_datetime(timestr, 'Time')