Manuel:fixTimestamps.php
Appearance
| Version de MediaWiki : | ≥ 1.7 |
| Fichier MediaWiki : fixTimestamps.php | |
|---|---|
| Emplacement : | maintenance/ |
| Code source : | master • 1.44.2 • 1.43.5 • 1.39.15 |
| 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.15 et antérieures, vous devez appeler les scripts de maintenance en utilisant
php maintenance/scriptName.php au lieu de php maintenance/run.php scriptName.