web/formfields.py
changeset 4382 6fb02edd05da
parent 4377 0e9cf6593382
child 4386 cf8842b69379
--- a/web/formfields.py	Tue Jan 26 20:29:52 2010 +0100
+++ b/web/formfields.py	Tue Jan 26 20:30:35 2010 +0100
@@ -668,7 +668,9 @@
     etype = 'Date'
 
     def format_single_value(self, req, value):
-        return value and ustrftime(value, req.property_value(self.format_prop)) or u''
+        if value:
+            return utils.ustrftime(value, req.property_value(self.format_prop))
+        return u''
 
     def render_example(self, req):
         return self.format_single_value(req, datetime.now())