Question
We have a Twiki that moved to a new VMWare virtual server. After move it was discovered after a few weeks that the system clock on the new new instance was running 8 month in the future.
Search our TWiki tree gives that some 700+ files currently been updated under twiki/.
Need to change the clock back to the correct time again.
Is there a way to achieve this without damaging the TWiki?
Environment
--
TWikiGuest - 09 Apr 2008
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
The timestamps in the META data are in Unix time (seconds since 1970), e.g., now is 1207699200 and 8 months ago was 1186617600. So a simple search and replace on the .txt files (e.g., with
TWiki:Plugins.GlobalReplacePlugin) probably isn't going to help: you'll want a script to do it.
Perhaps more importantly,
RCS is fussy about changes happening in chronological order (e.g.,
TimeProblemOnTWikiDotOrg). [Now I wonder if the same problem would occur during the "fallback" DST change]. So you'll want to repair those too, unless you can live with losing all the revision history (deleting the .txt,v files).
I don't suppose you could just turn off the server for 8 months...
--
SeanCMorgan - 09 Apr 2008
Closing this question after more than 30 days of inactivity. Feel free to re-open if needed.
--
PeterThoeny - 03 Jun 2008