[Zope] ZopeDate weiredness again

technews@egsx.com technews@egsx.com
Wed, 1 Dec 1999 11:35:01 -0500 (EST)


Yes I had a similar problem with

> <dtml-var  "ZopeTime('GMT+2')" fmt="%d.%m.%Y">

Regardless of what time zone I put it did not change. I also used
.toZone() and that did not work either.  The only way to get the GMT+2 was
to divide 2/24 = 0.083 and added it to ZopeTime. i.e

<dtml-var  "ZopeTime() + 0.083" fmt="%d.%m.%Y">

That worked...

Adonis

On Wed, 1 Dec 1999, Joachim Schmitz wrote:

> 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
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
>           No cross posts or HTML encoding!
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>