[Zope] Date calculation bug
Michel
michel@titus.u-strasbg.fr
Thu, 03 May 2001 12:20:27 +0200
Hello,
I execute this DTML Method :
<dtml-var standard_html_header>
<dtml-call "REQUEST.set('xdate', ZopeTime())">
<dtml-call "REQUEST.set('xdate2', xdate + 0.020832)">
Now : <dtml-var xdate> <BR>
30 minutes : <dtml-var xdate2> <BR>
0.020832 is the result of (1 day / 24 hours / 60 minutes) * 30 minutes
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 launched it again at 12H20 :
Now : 2001/05/03 12:20:52.6986 GMT+1
30 minutes : 2001/05/03 11:50:52.5834 GMT+1
I received 11:50 instead of 12:50
I think there is a bug here or I made a mistake ?
OFFNER Michel
IGBMC
France