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:
parent
ade3bf0a4d
commit
b807819ea1
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,8 @@ class DateFieldInstance(NumberFieldInstance):
|
||||||
def marshall(self, value):
|
def marshall(self, value):
|
||||||
if value is None:
|
if value is None:
|
||||||
return ''
|
return ''
|
||||||
|
if isinstance(value, basestring):
|
||||||
|
return value
|
||||||
return strftime('%Y-%m-%dT%H:%M', value.timetuple())
|
return strftime('%Y-%m-%dT%H:%M', value.timetuple())
|
||||||
|
|
||||||
def display(self, value):
|
def display(self, value):
|
||||||
|
|
Loading…
Add table
Reference in a new issue