[Zope] ZopeDate weiredness again

Alexandre Ratti alex@gabuzomeu.net
Thu, 02 Dec 1999 11:48:26 +0100


Hi Joachim,


If you want to display a date in a non-GMT format you cannot easily use 
fmt="%d.%m.%Y". These format code are all GMT-based.

<dtml-with ZopeTime>
  <dtml-var "'%s/%s/%i - %s' % (dd(), mm(), year(), TimeMinutes())">
</dtml-with>

displays the correct date and time (in French format) on my box.

See this document:

<http://www.zope.org/Members/AlexR/CustomDateFormats/>


HTH.

Alexandre


At 12:00 01/12/1999 -0800, you wrote:
>Date: Wed, 1 Dec 1999 17:55:24 +0100 (CET)
>From: Joachim Schmitz <js@ac-copy.net>
>To: "zope-dev@zope.org" <zope@zope.org>
>Subject: [Zope] ZopeDate weiredness again
>
>Hello,
>
><dtml-var "ZopeTime('1999-12-01 GMT+2')" fmt="%d.%m.%Y">
><dtml-var  "ZopeTime('GMT+2')" fmt="%d.%m.%Y">
>
>results in: 30.11.1999 01.12.1999
>
>regardless of the time of day. If seen questions about this many times and
>no solution. I just tested it one the Zope-site and that gives the same
>results. You find it under:
>
>www.zope.org/Members/perry/testdate
>
>
>  Mit freundlichen Grüßen
>
>Joachim Schmitz
>
>WWW-Consultant
>
>email: js@ac-copy.net
>tel: +49-241-89491-0
>fax: +49-241-89491-29