--On 5. März 2007 07:12:23 +0100 Tino Wildenhain <[EMAIL PROTECTED]> wrote:
Garry Saddington schrieb:I have 'datetime-format international' set in zope.conf but the date output is still rendered in the format (y,m,d) when using ZopeTime or when returning dates from python scripts. How can I change this behaviour? My server config is:Well what you see is not "the date" but one representation of the DateTime object. You can use the strftime() method to render your date object to string in any form you want. This should also answer your question on postgres list. Your database adaptor turns database types into zope types.
In addition: SQL also provides support converting a date type of the database into a string. See TO_DATE(...).
-aj
pgpjFyPtlAG35.pgp
Description: PGP signature
_______________________________________________ Zope maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
