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:
helmutm 2010-02-22 12:34:58 +00:00
parent 1e4ad5eec1
commit 2fb4a6ae3a

View file

@ -178,8 +178,10 @@ class BaseView(object):
def getFormattedDate(self, date=None, type='date', variant='medium',
adjustTz=False):
if date is not None and not isinstance(date, (int, float)):
return '???'
#if date is not None and not isinstance(date, (int, float)):
#print '***', date, repr(date), date.__class__
#return '???'
#date = date.timeTime()
if adjustTz:
date = time.gmtime(date)[:6]
else: