Manuel:fixTimestamps.php
Version de MediaWiki : | ≥ 1.7 |
Fichier MediaWiki : fixTimestamps.php | |
---|---|
Emplacement : | maintenance/ |
Code source : | master • 1.43.1 • 1.42.6 • 1.39.12 |
Classes : | FixTimestamps |
Détails
Le fichier fixTimestamps.php est un script de maintenance qui répare la corruption d'horodatages causée par une heure incorrecte temporairement sur un ou plusieurs serveurs.
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) | obligatoire |
start | Starting timestamp | obligatoire |
end | Ending timestamp | obligatoire |
Usage
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
Dans la version MediaWiki 1.39.12 et antérieure, vous devez invoquer des scripts de maintenance à l'aide de
php maintenance/scriptName.php
au lieu de php maintenance/run.php scriptName
.