Manual:fixTimestamps.php
MediaWiki バージョン: | ≧ 1.7 |
MediaWiki ファイル: fixTimestamps.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.42.3 • 1.41.4 • 1.39.10 |
クラス: | FixTimestamps |
詳細
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) | 必須 |
start | Starting timestamp | 必須 |
end | Ending timestamp | 必須 |
Usage
php maintenance/purgeChangedFiles.php offset start end
Terminal
$ php maintenance/fixTimestamps.php 2 20210801000000 20211231000000 Fixing 23 revisions (46.00% of revisions in search interval) Done