Closed renoirb closed 9 years ago
Provided the following Assumption is true, this is not an issue.
We already handle it using POPO (Plain Old PHP Objects).
$revisionXmlString = '<revision><!-- ... MediaWiki dumpBackup XML ... --></revision>'; $revisionNode = new SimpleXMLElement($revisionXmlString); $timestamp = $this->setTimestamp(new \DateTime($revisionNode->timestamp, new \DateTimeZone('Z')));
Provided that MediaWiki has a $wgLocaltimezone value set, the date shown in maintenance/dumpBackup.php XML output should be GMT-0 (Zulu, UTC)
$wgLocaltimezone
Confirmed. Works as-is.
Provided the following Assumption is true, this is not an issue.
We already handle it using POPO (Plain Old PHP Objects).
Assumption
Provided that MediaWiki has a
$wgLocaltimezone
value set, the date shown in maintenance/dumpBackup.php XML output should be GMT-0 (Zulu, UTC)Reference