{"action":"closed","issue":{"url":"https://api.github.com/repos/dwyl/elm-datepicker/issues/28","repository_url":"https://api.github.com/repos/dwyl/elm-datepicker","labels_url":"https://api.github.com/repos/dwyl/elm-datepicker/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/dwyl/elm-datepicker/issues/28/comments","events_url":"https://api.github.com/repos/dwyl/elm-datepicker/issues/28/events","html_url":"https://github.com/dwyl/elm-datepicker/issues/28","id":352187940,"node_id":"MDU6SXNzdWUzNTIxODc5NDA=","number":28,"title":"Bug: dates not displaying on safari","user":{"login":"Cleop","id":16775804,"node_id":"MDQ6VXNlcjE2Nzc1ODA0","avatar_url":"https://avatars3.githubusercontent.com/u/16775804?v=4","gravatar_id":"","url":"https://api.github.com/users/Cleop","html_url":"https://github.com/Cleop","followers_url":"https://api.github.com/users/Cleop/followers","following_url":"https://api.github.com/users/Cleop/following{/other_user}","gists_url":"https://api.github.com/users/Cleop/gists{/gist_id}","starred_url":"https://api.github.com/users/Cleop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cleop/subscriptions","organizations_url":"https://api.github.com/users/Cleop/orgs","repos_url":"https://api.github.com/users/Cleop/repos","events_url":"https://api.github.com/users/Cleop/events{/privacy}","received_events_url":"https://api.github.com/users/Cleop/received_events","type":"User","site_admin":false},"labels":[{"id":912133623,"node_id":"MDU6TGFiZWw5MTIxMzM2MjM=","url":"https://api.github.com/repos/dwyl/elm-datepicker/labels/awaiting-review","name":"awaiting-review","color":"f39c12","default":false},{"id":911364053,"node_id":"MDU6TGFiZWw5MTEzNjQwNTM=","url":"https://api.github.com/repos/dwyl/elm-datepicker/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":{"login":"Cleop","id":16775804,"node_id":"MDQ6VXNlcjE2Nzc1ODA0","avatar_url":"https://avatars3.githubusercontent.com/u/16775804?v=4","gravatar_id":"","url":"https://api.github.com/users/Cleop","html_url":"https://github.com/Cleop","followers_url":"https://api.github.com/users/Cleop/followers","following_url":"https://api.github.com/users/Cleop/following{/other_user}","gists_url":"https://api.github.com/users/Cleop/gists{/gist_id}","starred_url":"https://api.github.com/users/Cleop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cleop/subscriptions","organizations_url":"https://api.github.com/users/Cleop/orgs","repos_url":"https://api.github.com/users/Cleop/repos","events_url":"https://api.github.com/users/Cleop/events{/privacy}","received_events_url":"https://api.github.com/users/Cleop/received_events","type":"User","site_admin":false},"assignees":[{"login":"Cleop","id":16775804,"node_id":"MDQ6VXNlcjE2Nzc1ODA0","avatar_url":"https://avatars3.githubusercontent.com/u/16775804?v=4","gravatar_id":"","url":"https://api.github.com/users/Cleop","html_url":"https://github.com/Cleop","followers_url":"https://api.github.com/users/Cleop/followers","following_url":"https://api.github.com/users/Cleop/following{/other_user}","gists_url":"https://api.github.com/users/Cleop/gists{/gist_id}","starred_url":"https://api.github.com/users/Cleop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cleop/subscriptions","organizations_url":"https://api.github.com/users/Cleop/orgs","repos_url":"https://api.github.com/users/Cleop/repos","events_url":"https://api.github.com/users/Cleop/events{/privacy}","received_events_url":"https://api.github.com/users/Cleop/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-08-20T15:33:22Z","updated_at":"2018-11-01T10:54:41Z","closed_at":"2018-11-01T10:54:41Z","author_association":"MEMBER","body":"Dates are not displaying on safari because they are in string format. This can be solved by editing the following fn on `DateCore.elm` and creating the `formatWithZero` fn:\r\n```\r\nformatDate : Int -> Int -> Int -> String\r\nformatDate year month day =\r\n    toString year ++ \"-\" ++ formatWithZero (toString month) ++ \"-\" ++ formatWithZero (toString day) ++ \"T00:00:00\"\r\n\r\nformatWithZero : String -> String\r\nformatWithZero date =\r\n    if String.length date == 1 then\r\n        \"0\" ++ date\r\n    else\r\n        date\r\n```"}}
{"actor":{"display_login":"iteles"}}