{"action":"created","issue":{"url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/7","labels_url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/7/comments","events_url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/7/events","html_url":"https://github.com/webplatform/mediawiki-conversion/issues/7","id":96372310,"number":7,"title":"Ensure that calculated commit date aren’t miscalculated according to how MediaWiki handles them","user":{"login":"renoirb","id":296940,"avatar_url":"https://avatars.githubusercontent.com/u/296940?v=3","gravatar_id":"","url":"https://api.github.com/users/renoirb","html_url":"https://github.com/renoirb","followers_url":"https://api.github.com/users/renoirb/followers","following_url":"https://api.github.com/users/renoirb/following{/other_user}","gists_url":"https://api.github.com/users/renoirb/gists{/gist_id}","starred_url":"https://api.github.com/users/renoirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renoirb/subscriptions","organizations_url":"https://api.github.com/users/renoirb/orgs","repos_url":"https://api.github.com/users/renoirb/repos","events_url":"https://api.github.com/users/renoirb/events{/privacy}","received_events_url":"https://api.github.com/users/renoirb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-21T17:28:37Z","updated_at":"2015-07-22T01:42:59Z","closed_at":"2015-07-22T01:42:59Z","body":"Provided the following **Assumption** is true, this is not an issue.\r\n\r\nWe already handle it using *POPO* (Plain Old PHP Objects).\r\n\r\n```php\r\n$revisionXmlString = '<revision><!-- ... MediaWiki dumpBackup XML ... --></revision>';\r\n$revisionNode = new SimpleXMLElement($revisionXmlString);\r\n$timestamp = $this->setTimestamp(new \\DateTime($revisionNode->timestamp, new \\DateTimeZone('Z')));\r\n```\r\n\r\n## Assumption\r\n\r\nProvided that MediaWiki has a `$wgLocaltimezone` value set, the date shown in maintenance/dumpBackup.php XML output should be **GMT-0** (Zulu, UTC)\r\n\r\n## Reference\r\n\r\n* [Manual:Timezone][manual-timezone]\r\n\r\n  [manual-timezone]: https://www.mediawiki.org/wiki/Manual:Timezone"},"comment":{"url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/comments/123527044","html_url":"https://github.com/webplatform/mediawiki-conversion/issues/7#issuecomment-123527044","issue_url":"https://api.github.com/repos/webplatform/mediawiki-conversion/issues/7","id":123527044,"user":{"login":"renoirb","id":296940,"avatar_url":"https://avatars.githubusercontent.com/u/296940?v=3","gravatar_id":"","url":"https://api.github.com/users/renoirb","html_url":"https://github.com/renoirb","followers_url":"https://api.github.com/users/renoirb/followers","following_url":"https://api.github.com/users/renoirb/following{/other_user}","gists_url":"https://api.github.com/users/renoirb/gists{/gist_id}","starred_url":"https://api.github.com/users/renoirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renoirb/subscriptions","organizations_url":"https://api.github.com/users/renoirb/orgs","repos_url":"https://api.github.com/users/renoirb/repos","events_url":"https://api.github.com/users/renoirb/events{/privacy}","received_events_url":"https://api.github.com/users/renoirb/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T01:42:59Z","updated_at":"2015-07-22T01:42:59Z","body":"Confirmed. Works as-is."}}