[Zope] KInterBasDB - datetime conversion
Chris Withers
lists at simplistix.co.uk
Wed Mar 10 09:44:20 EST 2004
fowlertrainer at anonym.hu wrote:
> #sdate=row['LENDING_DATE'].strftime('%Y.%m.%d.')
> - it is show zope's password dialog
Funny, I wonder wh ythat is, hit cancel and see what it says...
> #sdate=time.strftime('%Y.%m.%d.',row['LENDING_DATE'])
> - auth error
More detail?
> #sdate=DateTime(row['LENDING_DATE']).strftime('%Y.%m.%d.')
> - zope have been died in this line
What does that mean? Something like that doesn't generally cause Zope to crash...
> sdate=str(row['LENDING_DATE'])
> - this is working... but...
>
> I want to show the date as hungarian format ('%Y.%m.%d.').
how about:
sdate = DateTime(str(row['LENDING_DATE'])).strftime('%Y.%m.%d.')
...as a workaround?
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list