{"action":"created","issue":{"url":"https://api.github.com/repos/devotox/ember-paper-pikaday/issues/10","repository_url":"https://api.github.com/repos/devotox/ember-paper-pikaday","labels_url":"https://api.github.com/repos/devotox/ember-paper-pikaday/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/devotox/ember-paper-pikaday/issues/10/comments","events_url":"https://api.github.com/repos/devotox/ember-paper-pikaday/issues/10/events","html_url":"https://github.com/devotox/ember-paper-pikaday/issues/10","id":420428423,"node_id":"MDU6SXNzdWU0MjA0Mjg0MjM=","number":10,"title":"value not formatted correctly after initial rendering","user":{"login":"bazzel","id":7672,"node_id":"MDQ6VXNlcjc2NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/7672?v=4","gravatar_id":"","url":"https://api.github.com/users/bazzel","html_url":"https://github.com/bazzel","followers_url":"https://api.github.com/users/bazzel/followers","following_url":"https://api.github.com/users/bazzel/following{/other_user}","gists_url":"https://api.github.com/users/bazzel/gists{/gist_id}","starred_url":"https://api.github.com/users/bazzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazzel/subscriptions","organizations_url":"https://api.github.com/users/bazzel/orgs","repos_url":"https://api.github.com/users/bazzel/repos","events_url":"https://api.github.com/users/bazzel/events{/privacy}","received_events_url":"https://api.github.com/users/bazzel/received_events","type":"User","site_admin":false},"labels":[{"id":617169108,"node_id":"MDU6TGFiZWw2MTcxNjkxMDg=","url":"https://api.github.com/repos/devotox/ember-paper-pikaday/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-03-13T10:39:52Z","updated_at":"2019-07-09T09:48:35Z","closed_at":null,"author_association":"NONE","body":"When I'm rendering the following code:\r\n```\r\n{{paper-pikaday\r\n    value=date\r\n    format=\"ddd, MMM Do, YYYY\"\r\n    onChange=(action (mut warranty.expiresOn))}}\r\n```\r\n\r\nthe input element shows the date formatted as \"YYYY-MM-DD\". Only after opening the calendar and selecting a new date, the used format is applied.\r\n\r\nI 'fixed' this by explicitly setting the date in the `didInsertElement` hook:\r\n```\r\n  didInsertElement() {\r\n    this.set(\"date\", moment(this.get(\"date\")).format(\"ddd, MMM Do, YYYY\"));\r\n  }\r\n```\r\n\r\nIs this a bug or did I forget to pass an option and/or is there a better way/workaround?\r\n\r\nThx."},"comment":{"url":"https://api.github.com/repos/devotox/ember-paper-pikaday/issues/comments/509574212","html_url":"https://github.com/devotox/ember-paper-pikaday/issues/10#issuecomment-509574212","issue_url":"https://api.github.com/repos/devotox/ember-paper-pikaday/issues/10","id":509574212,"node_id":"MDEyOklzc3VlQ29tbWVudDUwOTU3NDIxMg==","user":{"login":"bazzel","id":7672,"node_id":"MDQ6VXNlcjc2NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/7672?v=4","gravatar_id":"","url":"https://api.github.com/users/bazzel","html_url":"https://github.com/bazzel","followers_url":"https://api.github.com/users/bazzel/followers","following_url":"https://api.github.com/users/bazzel/following{/other_user}","gists_url":"https://api.github.com/users/bazzel/gists{/gist_id}","starred_url":"https://api.github.com/users/bazzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazzel/subscriptions","organizations_url":"https://api.github.com/users/bazzel/orgs","repos_url":"https://api.github.com/users/bazzel/repos","events_url":"https://api.github.com/users/bazzel/events{/privacy}","received_events_url":"https://api.github.com/users/bazzel/received_events","type":"User","site_admin":false},"created_at":"2019-07-09T09:48:35Z","updated_at":"2019-07-09T09:48:35Z","author_association":"NONE","body":"I forked your repo and reproduced the bug in this [commit](https://github.com/bazzel/ember-paper-pikaday/commit/beaedb39d955c8a468b988706e0026a14f5e6ba3). Hope this will give you enough input?"}}
{"actor":{"display_login":"bazzel"}}