Manual:fixTimestamps.php
Appearance
MediaWiki version: | ≥ 1.7 |
MediaWiki file: fixTimestamps.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | FixTimestamps |
Details
[edit]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
[edit]Argument | Description | Required? |
---|---|---|
offset | Time offset (in hours) | Required |
start | Starting timestamp | Required |
end | Ending timestamp | Required |
Usage
[edit]php maintenance/run.php purgeChangedFiles offset start end
Terminal
$ php maintenance/run.php fixTimestamps 2 20210801000000 20211231000000 Fixing 23 revisions (46.00% of revisions in search interval) Done
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.