remove check from code for date formatting in order to accept Zope2 DateTime values
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3747 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
1e4ad5eec1
commit
2fb4a6ae3a
1 changed files with 4 additions and 2 deletions
|
@ -178,8 +178,10 @@ class BaseView(object):
|
||||||
|
|
||||||
def getFormattedDate(self, date=None, type='date', variant='medium',
|
def getFormattedDate(self, date=None, type='date', variant='medium',
|
||||||
adjustTz=False):
|
adjustTz=False):
|
||||||
if date is not None and not isinstance(date, (int, float)):
|
#if date is not None and not isinstance(date, (int, float)):
|
||||||
return '???'
|
#print '***', date, repr(date), date.__class__
|
||||||
|
#return '???'
|
||||||
|
#date = date.timeTime()
|
||||||
if adjustTz:
|
if adjustTz:
|
||||||
date = time.gmtime(date)[:6]
|
date = time.gmtime(date)[:6]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue