[Zope] Confusing DateTime().strftime behavior

Andreas Jung lists at andreas-jung.com
Sat Oct 15 02:24:25 EDT 2005



--On 15. Oktober 2005 01:19:56 -0500 Kirk Strauser <kirk at daycos.com> wrote:

> I'm upgrading our server from a FoxPro backend to PostgreSQL, using the
> Psycopg connector.  My problem is that the old database returned
> timestamps  as a "%m/%d/%Y"-formatted string, while Psycopg returns a
> DateTime object  (I'm using the internal module, not mxDateTime).
> Whenever I use strftime  to format the object for display, I get the
> previous day's date instead.
>

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.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20051015/d641c1f8/attachment.bin


More information about the Zope mailing list