Manual:FixTimestamps.php/cs
Verze MediaWiki: | ≥ 1.7 |
Soubor MediaWiki: fixTimestamps.php | |
---|---|
Lokalita: | maintenance/ |
Zdrojový kód: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Třídy: | FixTimestamps |
Podrobnosti
Soubor fixTimestamps.php je údržbový skript, který opravuje poškození časového razítka způsobené dočasným nastavením nesprávného času na jednom nebo více webových serverech.
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) | Požadované |
start | Starting timestamp | Požadované |
end | Ending timestamp | Požadované |
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
Ve verzi MediaWiki 1.39.12 a starší musíte vyvolat skripty údržby pomocí
php maintenance/scriptName.php
namísto php maintenance/run.php scriptName
.