{"action":"created","issue":{"url":"https://api.github.com/repos/zonkyio/zonky-api/issues/1","repository_url":"https://api.github.com/repos/zonkyio/zonky-api","labels_url":"https://api.github.com/repos/zonkyio/zonky-api/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/zonkyio/zonky-api/issues/1/comments","events_url":"https://api.github.com/repos/zonkyio/zonky-api/issues/1/events","html_url":"https://github.com/zonkyio/zonky-api/issues/1","id":176246755,"number":1,"title":"Inconsistent datetime representation","user":{"login":"triceo","id":247403,"avatar_url":"https://avatars.githubusercontent.com/u/247403?v=3","gravatar_id":"","url":"https://api.github.com/users/triceo","html_url":"https://github.com/triceo","followers_url":"https://api.github.com/users/triceo/followers","following_url":"https://api.github.com/users/triceo/following{/other_user}","gists_url":"https://api.github.com/users/triceo/gists{/gist_id}","starred_url":"https://api.github.com/users/triceo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triceo/subscriptions","organizations_url":"https://api.github.com/users/triceo/orgs","repos_url":"https://api.github.com/users/triceo/repos","events_url":"https://api.github.com/users/triceo/events{/privacy}","received_events_url":"https://api.github.com/users/triceo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-11T14:36:12Z","updated_at":"2016-10-24T13:30:19Z","closed_at":"2016-10-24T13:30:19Z","body":"The [API prescribes ISO 8601](https://github.com/zonkyio/zonky-api/blob/master/apiary.apib#L108) datetime format. (Such as `2016-09-10T11:15:33.734Z`.) \r\n\r\nHowever, the loans use a different datetime format - one which includes the time zone. (Such as `2016-09-10T10:36:59.144+02:00`.) Even then, the format seems non-standard due to the use of `:` in the offset - this makes the standard `yyyy-MM-dd'T'HH:mm:ss.SSSZ` pattern fail too.\r\n\r\nThis inconsistency requires [unnecessary workarounds](https://github.com/triceo/robozonky/blob/master/robozonky-core/src/main/java/com/github/triceo/robozonky/remote/InstantDeserializer.java) in API consumers and should, in my opinion, be fixed. Either the ISO 8601 format should be used across the board, or the colon should be dropped."},"comment":{"url":"https://api.github.com/repos/zonkyio/zonky-api/issues/comments/255740672","html_url":"https://github.com/zonkyio/zonky-api/issues/1#issuecomment-255740672","issue_url":"https://api.github.com/repos/zonkyio/zonky-api/issues/1","id":255740672,"user":{"login":"petrvlcek","id":3663219,"avatar_url":"https://avatars.githubusercontent.com/u/3663219?v=3","gravatar_id":"","url":"https://api.github.com/users/petrvlcek","html_url":"https://github.com/petrvlcek","followers_url":"https://api.github.com/users/petrvlcek/followers","following_url":"https://api.github.com/users/petrvlcek/following{/other_user}","gists_url":"https://api.github.com/users/petrvlcek/gists{/gist_id}","starred_url":"https://api.github.com/users/petrvlcek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrvlcek/subscriptions","organizations_url":"https://api.github.com/users/petrvlcek/orgs","repos_url":"https://api.github.com/users/petrvlcek/repos","events_url":"https://api.github.com/users/petrvlcek/events{/privacy}","received_events_url":"https://api.github.com/users/petrvlcek/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T13:30:19Z","updated_at":"2016-10-24T13:30:19Z","body":"Hi, Triceo,\r\n\r\ntimezone offset format with colon character (`:`) should be fine and API accepts both variants - with or without it. \r\n\r\nRegarding failing standard pattern - this was not caused by timezone offset format but by another parsing issue that should be resolved by now.\r\n\r\nWe have changed API documentation to match input datetime format with output format to make things more clear. \r\n\r\nThere is still one open issue regarding parsing date with time zone (i.e. `2016-08-01+02:00`), which is going to be fixed in some of upcoming releases. Before that if you want to filter by date only we recommend to use date without timezone (i.e. `2016-08-01`) where default platform timezone (`Europe/Prague`) will be applied."}}
{"actor":{"display_login":"petrvlcek"}}