{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2069","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2069/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2069/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2069/events","html_url":"https://github.com/angular-ui/bootstrap/issues/2069","id":31621804,"number":2069,"title":"Datepicker and Timepicker use $modelValue instead of $viewValue.","user":{"login":"AlexHi","id":3844245,"avatar_url":"https://avatars.githubusercontent.com/u/3844245?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexHi","html_url":"https://github.com/AlexHi","followers_url":"https://api.github.com/users/AlexHi/followers","following_url":"https://api.github.com/users/AlexHi/following{/other_user}","gists_url":"https://api.github.com/users/AlexHi/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexHi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexHi/subscriptions","organizations_url":"https://api.github.com/users/AlexHi/orgs","repos_url":"https://api.github.com/users/AlexHi/repos","events_url":"https://api.github.com/users/AlexHi/events{/privacy}","received_events_url":"https://api.github.com/users/AlexHi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component%3A+datepicker","name":"component: datepicker","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component%3A+timepicker","name":"component: timepicker","color":"FFFFFF"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/PRs+plz%21","name":"PRs plz!","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-04-16T08:22:56Z","updated_at":"2015-01-15T11:04:30Z","closed_at":null,"body":"It seems that all angular controls use $viewValue in the $render function, so we are able to convert model value(using $formatters) before displaying."},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/70070371","html_url":"https://github.com/angular-ui/bootstrap/issues/2069#issuecomment-70070371","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2069","id":70070371,"user":{"login":"cleftheris","id":1777633,"avatar_url":"https://avatars.githubusercontent.com/u/1777633?v=3","gravatar_id":"","url":"https://api.github.com/users/cleftheris","html_url":"https://github.com/cleftheris","followers_url":"https://api.github.com/users/cleftheris/followers","following_url":"https://api.github.com/users/cleftheris/following{/other_user}","gists_url":"https://api.github.com/users/cleftheris/gists{/gist_id}","starred_url":"https://api.github.com/users/cleftheris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleftheris/subscriptions","organizations_url":"https://api.github.com/users/cleftheris/orgs","repos_url":"https://api.github.com/users/cleftheris/repos","events_url":"https://api.github.com/users/cleftheris/events{/privacy}","received_events_url":"https://api.github.com/users/cleftheris/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T11:04:30Z","updated_at":"2015-01-15T11:04:30Z","body":"Hi @karianna I will try to make a PR as soon as possible. \r\nI am currently having trouble with the $viewValue in datePicker in angular 1.3.x. \r\nAs it seems there is a default formatter in there put by the framework that converts a javascript Date object to a string using the toString() method in order to render the value to the view. I have hacked my way around it by removing it conditionally.\r\n\r\nWill post an update soon"}}