{"action":"created","issue":{"url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1118","labels_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1118/labels{/name}","comments_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1118/comments","events_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1118/events","html_url":"https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1118","id":87258736,"number":1118,"title":"dp.change is triggered when the widget is initialized and the input has a value","user":{"login":"nkovacs","id":2269242,"avatar_url":"https://avatars.githubusercontent.com/u/2269242?v=3","gravatar_id":"","url":"https://api.github.com/users/nkovacs","html_url":"https://github.com/nkovacs","followers_url":"https://api.github.com/users/nkovacs/followers","following_url":"https://api.github.com/users/nkovacs/following{/other_user}","gists_url":"https://api.github.com/users/nkovacs/gists{/gist_id}","starred_url":"https://api.github.com/users/nkovacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkovacs/subscriptions","organizations_url":"https://api.github.com/users/nkovacs/orgs","repos_url":"https://api.github.com/users/nkovacs/repos","events_url":"https://api.github.com/users/nkovacs/events{/privacy}","received_events_url":"https://api.github.com/users/nkovacs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-11T08:27:15Z","updated_at":"2015-06-26T08:22:54Z","closed_at":null,"body":"When the widget is initialized and the input has a value, it triggers a dp.change event:\r\nhttp://jsfiddle.net/nkovacs/j3mek9ej/6/"},"comment":{"url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/comments/115572681","html_url":"https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1118#issuecomment-115572681","issue_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1118","id":115572681,"user":{"login":"Leftyx","id":171024,"avatar_url":"https://avatars.githubusercontent.com/u/171024?v=3","gravatar_id":"","url":"https://api.github.com/users/Leftyx","html_url":"https://github.com/Leftyx","followers_url":"https://api.github.com/users/Leftyx/followers","following_url":"https://api.github.com/users/Leftyx/following{/other_user}","gists_url":"https://api.github.com/users/Leftyx/gists{/gist_id}","starred_url":"https://api.github.com/users/Leftyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leftyx/subscriptions","organizations_url":"https://api.github.com/users/Leftyx/orgs","repos_url":"https://api.github.com/users/Leftyx/repos","events_url":"https://api.github.com/users/Leftyx/events{/privacy}","received_events_url":"https://api.github.com/users/Leftyx/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T08:22:54Z","updated_at":"2015-06-26T08:22:54Z","body":"This might be a work-around:\r\n\r\n```\r\n$(\".datetimepicker\").on(\"dp.change\", function (e) {\r\n\tif (e.oldDate !== null)\r\n\t{\r\n\t// Do Something!\r\n\t}\r\n});\r\n```\r\n\r\n```e.oldDate``` is null only the first time."}}