Manual:fixTimestamps.php

From Linux Web Expert

Revision as of 03:45, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.7
<translate> MediaWiki version:</translate>

詳細

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) <translate> Required</translate>
start Starting timestamp <translate> Required</translate>
end Ending timestamp <translate> Required</translate>

Usage

php maintenance/purgeChangedFiles.php offset start end


Terminal

See also