{"action":"opened","issue":{"url":"https://api.github.com/repos/jweir/elm-iso8601/issues/1","repository_url":"https://api.github.com/repos/jweir/elm-iso8601","labels_url":"https://api.github.com/repos/jweir/elm-iso8601/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jweir/elm-iso8601/issues/1/comments","events_url":"https://api.github.com/repos/jweir/elm-iso8601/issues/1/events","html_url":"https://github.com/jweir/elm-iso8601/issues/1","id":154762346,"number":1,"title":"Invalid date being returned","user":{"login":"liamcurry","id":77758,"avatar_url":"https://avatars.githubusercontent.com/u/77758?v=3","gravatar_id":"","url":"https://api.github.com/users/liamcurry","html_url":"https://github.com/liamcurry","followers_url":"https://api.github.com/users/liamcurry/followers","following_url":"https://api.github.com/users/liamcurry/following{/other_user}","gists_url":"https://api.github.com/users/liamcurry/gists{/gist_id}","starred_url":"https://api.github.com/users/liamcurry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liamcurry/subscriptions","organizations_url":"https://api.github.com/users/liamcurry/orgs","repos_url":"https://api.github.com/users/liamcurry/repos","events_url":"https://api.github.com/users/liamcurry/events{/privacy}","received_events_url":"https://api.github.com/users/liamcurry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-13T17:28:16Z","updated_at":"2016-05-13T17:28:16Z","closed_at":null,"body":"\r\n\r\nI'm getting an invalid date when I try to convert `1459530703000` into an ISO8601 string.\r\n\r\nI'd expect it to be converted to:\r\n\r\n`2016-04-01T17:11:43Z`\r\n\r\nBut instead it's being converted to:\r\n\r\n`2016-03-32T17:11:43Z`\r\n\r\nHere's an example from `elm-repl`:\r\n\r\n```elm\r\n> import ISO8601\r\n> time = 1459530703 * 1000\r\n1459530703000 : number\r\n> time |> ISO8601.fromTime\r\n{ year = 2016, month = 3, day = 32, hour = 17, minute = 11, second = 43, millisecond = 0, offset = (0,0) } : ISO8601.Time\r\n> time |> ISO8601.fromTime |> ISO8601.toString\r\n\"2016-03-32T17:11:43Z\" : String\r\n> import Date\r\n> time |> toFloat |> Date.fromTime |> Date.day\r\n1 : Int\r\n```\r\n\r\nAs you can see `Date.fromTime` gets the right day, so I assume something strange is going on with the offset conversions."}}