
richard at scholarpack
May 3, 2011, 4:33 AM
Post #3 of 3
(261 views)
Permalink
|
Thanks Andreas - so there is no way to set a date format at an intermediate layer so that all dates are rendered a certain way without string formatting? Am I naive in thinking this could possibly be done at the db adapter level? Thanks On 03/05/11 12:26, Andreas Jung wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > 'international' only affects the format for parsing dates as far as I > can recall. Using strftime() gives you full control over the output > format. Your application should not rely on the default format. If you > need a custom date output format then define it explicitly in your > application. > > - -aj > > Richard Harley wrote: >> Hello all >> >> Hoping there is a quick fix for this - I'm trying to change how Zope >> formats dates. I want dd/mm/yyyy but Zope is forcing yyyy-mm-dd. I've >> changed the format in zope.conf to 'international' but this makes no >> difference. I know dates can be formatted at the front end (i.e. fmt=) >> but it would be really useful to have Zope sort this out for me without >> having to do any string formatting. Any ideas? >> >> Thanks >> Richard >> >> _______________________________________________ >> Zope maillist - Zope [at] zope >> https://mail.zope.org/mailman/listinfo/zope >> ** No cross posts or HTML encoding! ** >> (Related lists - >> https://mail.zope.org/mailman/listinfo/zope-announce >> https://mail.zope.org/mailman/listinfo/zope-dev ) > > - -- > ZOPYX Limited | zopyx group > Charlottenstr. 37/1 | The full-service network for Zope& Plone > D-72070 Tübingen | Produce& Publish > www.zopyx.com | www.produce-and-publish.com > - ------------------------------------------------------------------------ > E-Publishing, Python, Zope& Plone development, Consulting > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQGUBAEBAgAGBQJNv+ZLAAoJEADcfz7u4AZjUBkLwKy594OzaZMRAMDZGL3nL9g0 > H+jFAsQHWsEy/3UbKzo//Ogh9TgQHrEaFOAEk36/lS0iWjQ0kq7bWzreFWkzApb2 > fVOWHoVwtIIcgItlxEl0zgu/XGA/rw+1cIK1yxEy45H2BHHhXP8B1CVRUpwatlrR > lIDN3KXo0vem8tOa/DGcUISbW4VFpQU63qNOKfW4+hU/HJcoFeFs+jqSWro8F2+Q > hghoSTSM5GtX9h0hksBNJaVK+0wcD59R2fQZ28QdCz+cuiTe97cG+MW9Wd+GDeq6 > 6bgi915KgrsSfwSZ+lGYr/FssPSiFtZk11xDJsvF0XKSw8JnxjmDvWIaT/gexVDC > iPYF9cNJXAsEXlvUZVxhr81BH9/HE/KAOh/hmDC3eg6FqqubmtjQRUp3mnvXnGwZ > LWjDm//FBv7BOtr7ftwiLPhpFPZTRh3kzANsLHkIb1o4rjeOo3L8pcQeBzQLRM8b > 24b1CQOZvjBfMYgWj3yKYHggYllw1go= > =pvLD > -----END PGP SIGNATURE----- -- *Richard Harley* ScholarPack Follow us on Twitter <http://twitter.com/spschools> Tel: 01754 871243
|