Re: [Zope] bobobase_modification_time one day back?
On Wed, 1 Mar 2000 21:42:24 +0100, "Martijn Pieters" <mj@digicool.com> said: Hi all, I have the same problem. MP> From: "Thomas Weiner" <weiner@tu-harburg.de> >> Am I the only one whose bobo_modification_time started today with >> /2000/2/29 instead of /2000/03/01? >> >> I create a new method Time_now: >> >> <dtml-var ZopeTime><br> <dtml-var bobobase_modification_time--> >> >> and the Output is: >> >> 2000/03/01 18:30:21.091 GMT+1 2000/02/29 18:30:5.198 GMT+1 >> >> Same appears in my Undo Log (February, 29th started again today) >> and so on.
MP> 1: What is your timezone setting. It could be that dates are MP> displayed in a different timezone. Martijn, it is not problem of timezone setting. If yes I had to see the difference in past also. And it was OK. The problem started with 29.2. date. I think that it is a bug in bobobase_modification_time. The system time is OK, only problems with bobobase_modification_time. MP> 2: If you do your test from a DTML Method, you'll be shown the MP> modification date of the container it is called on. For an MP> explanation, see: MP> MP> http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo MP> and other How-To's on DTML and Aqcuisition. MP> Martijn Pieters | Software Engineer mailto:mj@digicool.com | MP> Digital Creations http://www.digicool.com/ | Creators of Zope MP> http://www.zope.org/ | The Open Source Web Application Server MP> --------------------------------------------- MP> _______________________________________________ Zope maillist - MP> Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No MP> cross posts or HTML encoding! ** (Related lists - MP> http://lists.zope.org/mailman/listinfo/zope-announce MP> http://lists.zope.org/mailman/listinfo/zope-dev ) Petr -- Petr Knápek PVT.NET, e-mail: petr.knapek@pvt.net, tel:+420-5-41 558 394 PVT a.s. - pvt.net, Veveří 102, 659 10 Brno, Czech Republic
From: "Petr Knapek" <knapek@knapek.pvt.net> MP> 1: What is your timezone setting. It could be that dates are MP> displayed in a different timezone. Martijn, it is not problem of timezone setting. If yes I had to see the difference in past also. And it was OK. The problem started with 29.2. date. I think that it is a bug in bobobase_modification_time. The system time is OK, only problems with bobobase_modification_time. The best test is creating a DTML _Document_ (not a Method!), with the contents: Modified: <dtml-var bobobase_modification_time><BR> Current time: <dtml-var ZopeTime><BR> IMartijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
Martijn Pieters schrieb: [...]
The best test is creating a DTML _Document_ (not a Method!), with the contents:
Modified: <dtml-var bobobase_modification_time><BR> Current time: <dtml-var ZopeTime><BR>
Okay, my code was unclear in the example (though with a new created method the modification time of the container should have changed too:), but I'm quite sure, it's a bug. Greetings, Thomas
From: "Thomas Weiner" <weiner@tu-harburg.de>
The best test is creating a DTML _Document_ (not a Method!), with the contents:
Modified: <dtml-var bobobase_modification_time><BR> Current time: <dtml-var ZopeTime><BR>
Okay, my code was unclear in the example (though with a new created method the modification time of the container should have changed too:), but I'm quite sure, it's a bug.
Uuuhhhmmm.. <g> I just tested this myself. Here's my output: Modified: 2000/03/01 13:06:16.05 GMT+1 Current time: 2000/03/02 13:06:17.86 GMT+1 Heh. One day off. And so is the Undo log. My apologies for my unduly applied sceptisism. I'll go and hide now, and investigate. Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
Dunno if this is related or not, but I got some really weird errors yesterday when trying to view some images I had created in Zope on the 29th. All I was trying to do was view them using the image's view tab and I got a Zope error. Something about an invalid datetime stamp I think but try simulating it yourself if you want the exact answer... They also appeared as broken images when I included them on pages using <dtml-var image> so, Zope doesn't like leap years? ;-) Chris Martijn Pieters wrote:
From: "Thomas Weiner" <weiner@tu-harburg.de>
The best test is creating a DTML _Document_ (not a Method!), with the contents:
Modified: <dtml-var bobobase_modification_time><BR> Current time: <dtml-var ZopeTime><BR>
Okay, my code was unclear in the example (though with a new created method the modification time of the container should have changed too:), but I'm quite sure, it's a bug.
Uuuhhhmmm.. <g>
I just tested this myself. Here's my output:
Modified: 2000/03/01 13:06:16.05 GMT+1 Current time: 2000/03/02 13:06:17.86 GMT+1
Heh. One day off. And so is the Undo log.
My apologies for my unduly applied sceptisism. I'll go and hide now, and investigate.
Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Chris Withers -
Martijn Pieters -
Petr Knapek -
Thomas Weiner