[Zope] Date calculation bug

Kai Hofmann hofmann@isl.org
Thu, 3 May 2001 15:30:10 +0200


> >> <dtml-call "REQUEST.set('xdate', ZopeTime())">
> >> <dtml-call "REQUEST.set('xdate2', xdate + 0.020832)">
> >
> >> I launched it at 10H35 :
> >> Now : 2001/05/03 10:35:03.05544 GMT+1=20
> >> 30 minutes : 2001/05/03 10:05:02.94628 GMT+1=20
> >> I received 10:05 instead of 11:05

> Sorry, I tried with - intead of + in my DTML Method and the result is :
>=20
> Now : 2001/05/03 15:12:07.64429 GMT+1=20
> 30 minutes : 2001/05/03 13:42:07.75949 GMT+1=20


Looks to me like the following happens:

Zope changed the TIME to GMT then adds/subs the 30 minutes
and forget to change back to GMT+1!

Greetings

Kai

--=20
Institut f=FCr Seeverkehrswirtschaft und Logistik   http://www.isl.org/
Dipl.-Inform. Kai Hofmann                       mailto:hofmann@isl.org
Universitaetsallee GW1 Block A                   phone:+49 421 22096-83
D-28359 Bremen                                     fax:+49 421 22096-55