do not convert date values that are already a string

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@4001 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-09-19 15:25:02 +00:00
parent ade3bf0a4d
commit b807819ea1

View file

@ -235,6 +235,8 @@ class DateFieldInstance(NumberFieldInstance):
def marshall(self, value):
if value is None:
return ''
if isinstance(value, basestring):
return value
return strftime('%Y-%m-%dT%H:%M', value.timetuple())
def display(self, value):