[Zope] Date calculation bug

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


Hi,

> <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

I don't know whats wrong here, but have you tried a - 0.020832 instead of=
 a +=20
?
When this works the problem is that add/subtraction will change the=20
TimeZone instead of increasing the Time!!
(Only an idea - nothing more!)

Greetings

Kai
=20
--=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