[Zope] Confusing DateTime().strftime behavior

Kirk Strauser kirk at daycos.com
Sun Oct 16 11:41:19 EDT 2005


On Saturday 15 October 2005 01:24, Andreas Jung wrote:

> If you speak of DateTime instances then you should be able to write
> to two-line testcase that shows the issue with a standard Zope
> installation.
> If you can provide such a testcase we are able to look at it in detail.

########
date = context.testQuery()[0]['date']
print date
print date.ISO()
print date.strftime('%m/%d/%Y')
return
########

gives

########
2005/10/14
2005-10-14 00:00:00
10/13/2005
########

By the way, this is with Zope 2.7.7 and Python 2.3.5 on a FreeBSD 5-STABLE 
server (if that makes any difference).
-- 
Kirk Strauser
The Day Companies


More information about the Zope mailing list