{"action":"created","issue":{"url":"https://api.github.com/repos/bitwalker/timex/issues/199","repository_url":"https://api.github.com/repos/bitwalker/timex","labels_url":"https://api.github.com/repos/bitwalker/timex/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/bitwalker/timex/issues/199/comments","events_url":"https://api.github.com/repos/bitwalker/timex/issues/199/events","html_url":"https://github.com/bitwalker/timex/issues/199","id":166709466,"number":199,"title":"Timex 2.2.1: ** (Timex.Parse.ParseError) Expected end of input for parsing dates using :strftime for certain timezones","user":{"login":"marcelog","id":527356,"avatar_url":"https://avatars.githubusercontent.com/u/527356?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelog","html_url":"https://github.com/marcelog","followers_url":"https://api.github.com/users/marcelog/followers","following_url":"https://api.github.com/users/marcelog/following{/other_user}","gists_url":"https://api.github.com/users/marcelog/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelog/subscriptions","organizations_url":"https://api.github.com/users/marcelog/orgs","repos_url":"https://api.github.com/users/marcelog/repos","events_url":"https://api.github.com/users/marcelog/events{/privacy}","received_events_url":"https://api.github.com/users/marcelog/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-21T00:02:21Z","updated_at":"2016-07-31T00:07:16Z","closed_at":"2016-07-30T23:29:46Z","body":"Hello,\r\n\r\nI'm getting the following error with Timex 2.2.1:\r\n```elixir\r\nTimex.parse! \"2016-01-01T19:32:32 America/Port-au-Prince\", \"%Y-%m-%dT%H:%M:%S %Z\", :strftime\r\n** (Timex.Parse.ParseError) Expected end of input at line 1, column 32\r\n    lib/parse/datetime/parser.ex:85: Timex.Parse.DateTime.Parser.parse!/3\r\n```\r\n\r\nAs an example, the timezone America/Port-au-Prince exists as a valid Timezone when calling `Timex.timezones/0`.\r\n\r\nThe expected result would be to get a valid DateTime.\r\n\r\nPerhaps I'm missing something?\r\n\r\nThanks in advance!\r\n\r\nUpdate: this actually works:\r\n```elixir\r\n> now = DateTime.now\r\n> now_in_tz = Timezone.convert now, \"America/Port-au-Prince\"\r\n#<DateTime(2016-07-20T19:06:35 America/Port-au-Prince (-05:00:00))>\r\n> Timex.format(now_in_tz, \"%Y-%m-%dT%H:%M:%S %Z\", :strftime)\r\n{:ok, \"2016-07-20T19:06:35 America/Port-au-Prince\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bitwalker/timex/issues/comments/236397873","html_url":"https://github.com/bitwalker/timex/issues/199#issuecomment-236397873","issue_url":"https://api.github.com/repos/bitwalker/timex/issues/199","id":236397873,"user":{"login":"marcelog","id":527356,"avatar_url":"https://avatars.githubusercontent.com/u/527356?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelog","html_url":"https://github.com/marcelog","followers_url":"https://api.github.com/users/marcelog/followers","following_url":"https://api.github.com/users/marcelog/following{/other_user}","gists_url":"https://api.github.com/users/marcelog/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelog/subscriptions","organizations_url":"https://api.github.com/users/marcelog/orgs","repos_url":"https://api.github.com/users/marcelog/repos","events_url":"https://api.github.com/users/marcelog/events{/privacy}","received_events_url":"https://api.github.com/users/marcelog/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T00:07:16Z","updated_at":"2016-07-31T00:07:16Z","body":"Thanks for the fix!\r\n\r\nWe've upgraded to 3.0.0 (and now 3.0.5) since then, so *we* don't need the backport (although perhaps other might benefit from it!)\r\n\r\nCheers!"}}
{"actor":{"display_login":"marcelog"}}