Hi, I have a strange date problem on my SuSE Linux machine running Zope 2.5.1. I guess it is probably system related and not Zope's fault, if so please excuse the OT-post. I noted that the system clock was one day off, so the bobobase_modificationtime was too. At the shell at root I issued date -s yesterday and a test date gave the correct output. I restarted Zope and added an object... from that point on, when a Zope object is created and displayed instantly, the date is correct. On the second and subsequent view of the object, the date again is one day off... Does anyone know why this is and more importantly, how to fix it? Is there a way to correct the creation/modification time/date of a Zope object?? Thanks Jochen
For linux related clock problems see here: http://www.linuxsa.org.au/tips/time.html I had my date off by several hours, and this docuemnt helped me. Also, I set my date with an ntp server usig the rdate -s <ntpserver> sommand as root (actually i did a sudo rdate -s <ntpserver>). Typ ntp.apple.com for public ntp server. I hanven't tested it, but it should work, afaik.
Is there a way to correct the creation/modification time/date of a Zope object??
sort of. make a copy of it, and replace the original with it. Then you will have a freshly created object (and if you do it with after the date problem is fixed, then at least the object wont have wird dates). Clerarly not the most elegant solution, but it works to some extent. Hope this helps. /dario - -------------------------------------------------------------------- Dario Lopez-Kästen, dario@ita.chalmers.se IT Systems & Services System Developer/System Administrator Chalmers University of Tech.
Hi Dario, At 11:22 Uhr +0200 06.09.2002, Dario Lopez-Kästen wrote:
For linux related clock problems see here:
http://www.linuxsa.org.au/tips/time.html
I had my date off by several hours, and this docuemnt helped me.
Thanks for that... I just set the system-clock, not the hw-clock... didn't know there's a difference... How comes Zope sometimes uses the system clock to return a date and sometimes the hardware-clock??? Thanks Jochen
participants (2)
-
Dario Lopez-Kästen -
Jochen Haeberle