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
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!) Greetings Kai -- Institut für 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
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
<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
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
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 -- Institut für 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
participants (2)
-
Kai Hofmann -
Michel