[Zope] Date calculation bug

Michel michel@titus.u-strasbg.fr
Thu, 03 May 2001 15:12:01 +0200


At , you wrote:
>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 
>> 30 minutes : 2001/05/03 10:05:02.94628 GMT+1 
>> 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 + 
>?
>When this works the problem is that add/subtraction will change the 
>TimeZone instead of increasing the Time!!
>(Only an idea - nothing more!)

Sorry, I tried with - intead of + in my DTML Method and the result is :

Now : 2001/05/03 15:12:07.64429 GMT+1 
30 minutes : 2001/05/03 13:42:07.75949 GMT+1 

It could be a bug .........

	OFFNER Michel
	IGBMC
	France