Manual:FixTimestamps.php

MediaWiki version:
1.7
Category:MediaWiki code#FixTimestamps.php

Details

fixTimestamps.php file is a maintenance script to fix timestamp corruption caused by one or more webservers temporarily being set to the wrong time.

The time offset must be known and consistent. Start and end times (in 14-character format) restrict the search, and must bracket the damage. There must be a majority of good timestamps in the search period.

Options/Arguments

Argument Description Required?
offset Time offset (in hours)Required
start Starting timestampRequired
end Ending timestampRequired

Usage

php maintenance/run.php purgeChangedFiles offset start end
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

Category:Maintenance scripts#FixTimestamps.php Category:Content maintenance scripts
Category:Content maintenance scripts Category:Maintenance scripts Category:MediaWiki code