Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: SpreadSheetPlugin, ActionTrackerPlugin, ChartPlugin, CommentPlugin, DirectedGraphPlugin, DirectedGraphWebMapPlugin, EditTablePlugin, InterwikiPlugin, PreferencesPlugin, SlideShowPlugin, SmiliesPlugin, TWikiDrawPlugin, TWikiUmlPlugin, TablePlugin, TagMePlugin, TocPlugin, TreePlugin, TwistyPlugin, WysiwygPlugin
Server OS: Red Hat Enterprise Linux Server release 5.1
Web server: Apache/2.2.3
Perl version: perl5 (revision 5 version 8 subversion 8)
Client OS: Linux
Web Browser: Firefox
Categories: Platform

-- TWikiGuest - 09 Apr 2008

Answer

ALERT! 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

 
Change status to:
Topic revision: r3 - 2008-06-03 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.