[Zope] Re: ZopeTime

Joachim Schmitz perry@ac-copy.net
Fri, 17 Sep 1999 11:34:32 +0200 (CEST)


On Fri, 17 Sep 1999, Martijn Pieters wrote:

> 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.
> 
That results in 1999/09/01



Gruß

Joachim Schmitz

WWW-Consultant

email: js@ac-copy.net
tel: +49-241-89491-0
fax: +49-241-89491-29