{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/4804","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/4804/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/4804/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/4804/events","html_url":"https://github.com/nim-lang/Nim/issues/4804","id":177874661,"number":4804,"title":"Timezone bug in \"times\" library","user":{"login":"trustable-code","id":8593614,"avatar_url":"https://avatars.githubusercontent.com/u/8593614?v=3","gravatar_id":"","url":"https://api.github.com/users/trustable-code","html_url":"https://github.com/trustable-code","followers_url":"https://api.github.com/users/trustable-code/followers","following_url":"https://api.github.com/users/trustable-code/following{/other_user}","gists_url":"https://api.github.com/users/trustable-code/gists{/gist_id}","starred_url":"https://api.github.com/users/trustable-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trustable-code/subscriptions","organizations_url":"https://api.github.com/users/trustable-code/orgs","repos_url":"https://api.github.com/users/trustable-code/repos","events_url":"https://api.github.com/users/trustable-code/events{/privacy}","received_events_url":"https://api.github.com/users/trustable-code/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nim-lang/Nim/labels/Stdlib","name":"Stdlib","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-19T19:28:52Z","updated_at":"2016-09-20T10:05:03Z","closed_at":null,"body":"Sample program:\r\n\r\n```\r\nimport times\r\n\r\necho \"2016-01-01 00:00 GMT\".parse(\"yyyy-MM-dd hh:mm ZZZ\").format(\"yyyy-MM-dd HH:mm\")\r\necho \"2016-01-01 00:00 GMT\".parse(\"yyyy-MM-dd h:mmZZZ\").toTime.getGMTime.format(\"yyyy-MM-dd HH:mm\") \r\n```\r\n\r\nOutput:\r\n1. line: \"2016-01-01 00:00\"\r\n2. line: \"2015-12-31 23:00\"\r\n\r\nExpected output:\r\ntwo times \"2016-01-01 00:00\"\r\n\r\nTest environment:\r\nLinux, OS timezone: UTC+2 "},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/248258590","html_url":"https://github.com/nim-lang/Nim/issues/4804#issuecomment-248258590","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/4804","id":248258590,"user":{"login":"dom96","id":246651,"avatar_url":"https://avatars.githubusercontent.com/u/246651?v=3","gravatar_id":"","url":"https://api.github.com/users/dom96","html_url":"https://github.com/dom96","followers_url":"https://api.github.com/users/dom96/followers","following_url":"https://api.github.com/users/dom96/following{/other_user}","gists_url":"https://api.github.com/users/dom96/gists{/gist_id}","starred_url":"https://api.github.com/users/dom96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dom96/subscriptions","organizations_url":"https://api.github.com/users/dom96/orgs","repos_url":"https://api.github.com/users/dom96/repos","events_url":"https://api.github.com/users/dom96/events{/privacy}","received_events_url":"https://api.github.com/users/dom96/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T10:05:03Z","updated_at":"2016-09-20T10:05:03Z","body":"> According to the docs, parse() supports timezones, therefore it should have parsed \"GMT\"\r\n\r\nIndeed."}}
{"actor":{"display_login":"dom96"}}