[Zope] How can I reset zope time???

Jens Vagelpohl jens at dataflake.org
Fri Mar 23 03:46:12 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 23 Mar 2007, at 07:41, Flemming Bjerke wrote:
>>> But, now, not only have all my changes the date 12/12-2007 in the
>>> undo history, every object I have changed gets this date as well!
>>> Apparently, zope won't accept to go backward in time.
>>>
>>> How do I reset the zope's time?
>>
>> Undo is transactional, meaning an undo is actually a new transaction
>> instead of removing an old transaction. What you are trying to do is
>> not possible, unless you physically truncate the database.
>
> I am not absolutely sure I understand you. I succeeded in undoing.  
> My problem is that zope keeps on with the date 12/12-07. The zodb  
> does not seem to accept a timestamp that is earlier than the last

That's what I am trying to tell you. Any undo is actually a brand-new  
transaction that will by definition set the modification time to the  
current time. You *cannot* get back to the old modification time  
using Undo. This does not mean that Undo won't work at all, it will.  
But you will not get back your old modification time.

jens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFGA4XFRAx5nvEhZLIRAtVgAKCzR9Chwxwne5A0ncA0kyuckiLH4wCgr0oQ
5jNmLYQn4p8fdBzNV3ALU5M=
=AbR8
-----END PGP SIGNATURE-----


More information about the Zope mailing list