<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
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?<br>
Thanks<br>
<br>
<br>
<br>
<br>
On 03/05/11 12:26, Andreas Jung wrote:
<blockquote cite="mid:4DBFE64B.5060408@zopyx.com" type="cite">
<pre wrap="">-----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:
</pre>
<blockquote type="cite">
<pre wrap="">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 - <a class="moz-txt-link-abbreviated" href="mailto:Zope@zope.org">Zope@zope.org</a>
<a class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope">https://mail.zope.org/mailman/listinfo/zope</a>
** No cross posts or HTML encoding! **
(Related lists -
<a class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope-announce">https://mail.zope.org/mailman/listinfo/zope-announce</a>
<a class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope-dev">https://mail.zope.org/mailman/listinfo/zope-dev</a> )
</pre>
</blockquote>
<pre wrap="">
- --
ZOPYX Limited | zopyx group
Charlottenstr. 37/1 | The full-service network for Zope & Plone
D-72070 Tübingen | Produce & Publish
<a class="moz-txt-link-abbreviated" href="http://www.zopyx.com">www.zopyx.com</a> | <a class="moz-txt-link-abbreviated" href="http://www.produce-and-publish.com">www.produce-and-publish.com</a>
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a>
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-----
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<p style="color: rgb(61, 61, 61);"><b>Richard Harley</b><br>
ScholarPack <br>
<br>
</p>
<a href="http://twitter.com/spschools"><span style="color: rgb(61,
61, 61);">Follow us on Twitter</span></a><br>
<p style="color: rgb(61, 61, 61);">Tel: 01754 871243 </p>
</div>
</body>
</html>