[Zope] Re: ZopeTime

Martijn Pieters mj@antraciet.nl
Fri, 17 Sep 1999 10:15:37 +0200


At 09:00 17/09/99 , Joachim Schmitz wrote:
>On Wed, 15 Sep 1999, Rob Page wrote:
>
> > > what is this ?
> > > <dtml-var "_.DateTime('1999-09-11') + 5" fmt="%m/%d/%y">
> > >
> > > gives me: 09/10/99
> > >              ^^
> >
> > That's odd.. It gives me 09/16/1999 as expected.
> >
>
>first my example must read:
>
><dtml-var "_.DateTime('1999-09-11')" fmt="%m/%d/%y">
>
>then when I use this on my personal page on zope.org, I get the expected:
>09/11/1999
>
>But when I execute it on my Sun in Germany I get:  09/10/1999. Itīs very
>intelligent: <dtml-var "_.DateTime('1999-09-01')" fmt="%m/%d/%y">
>
>gives 08/31/1999.

Could you do just a <dtmml-var "ZopeTime('1999-09-01')">? Look at the timezone.



--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------