Creating Lotus Notes documents with specific created/modified/last accessed dates for testing

Posted by Xolstice on Stack Overflow See other posts from Stack Overflow or by Xolstice
Published on 2010-05-26T01:52:42Z Indexed on 2010/05/26 2:01 UTC
Read the original article Hit count: 395

Filed under:
|
|

I'm currently writing an application that moves Notes documents between databases based on the amount of days that have elapsed from the creation/modified/last accessed dates. I would just like to get ideas on a simple and convenient way to create documents with specific dates, without having to change the time on the Domino server, so that I could test out my application.

The best way I found so far was to create a local replica and change the system clock to the date I want. Unfortunately there are problems associated with this method. It does not work on the modified date - I'm not sure how it is getting the modified date information when the location is set to Island (Disconnected) - and it also changes the modified and last accessed dates when the documents are replicated to the server replica.

Someone suggested trying to create a DXL of the document, modify the date time in the DXL file, then import it back into the database as a Notes document; but that does not work. It just takes on the date-time that it was created.

Can anyone offer any other suggestions?

© Stack Overflow or respective owner

Related posts about lotus-notes

Related posts about lotus