{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/196","labels_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/196/comments","events_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/196/events","html_url":"https://github.com/strongloop/loopback-sdk-angular/issues/196","id":122749935,"number":196,"title":"Date format is subtracted by one day","user":{"login":"chule143","id":1250071,"avatar_url":"https://avatars.githubusercontent.com/u/1250071?v=3","gravatar_id":"","url":"https://api.github.com/users/chule143","html_url":"https://github.com/chule143","followers_url":"https://api.github.com/users/chule143/followers","following_url":"https://api.github.com/users/chule143/following{/other_user}","gists_url":"https://api.github.com/users/chule143/gists{/gist_id}","starred_url":"https://api.github.com/users/chule143/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chule143/subscriptions","organizations_url":"https://api.github.com/users/chule143/orgs","repos_url":"https://api.github.com/users/chule143/repos","events_url":"https://api.github.com/users/chule143/events{/privacy}","received_events_url":"https://api.github.com/users/chule143/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/labels/triage","name":"triage","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"davidcheung","id":1787590,"avatar_url":"https://avatars.githubusercontent.com/u/1787590?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcheung","html_url":"https://github.com/davidcheung","followers_url":"https://api.github.com/users/davidcheung/followers","following_url":"https://api.github.com/users/davidcheung/following{/other_user}","gists_url":"https://api.github.com/users/davidcheung/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcheung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcheung/subscriptions","organizations_url":"https://api.github.com/users/davidcheung/orgs","repos_url":"https://api.github.com/users/davidcheung/repos","events_url":"https://api.github.com/users/davidcheung/events{/privacy}","received_events_url":"https://api.github.com/users/davidcheung/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-17T14:51:43Z","updated_at":"2015-12-18T01:43:05Z","closed_at":null,"body":"When a date is received from the backend, is received correctly, but when it's parsed in angular is substracted by one day:\r\n\r\n```javascript\r\n$scope.test1 = new Date('2014-01-01T00:00:00Z'); // data from loopback\r\n$scope.test2 = '2014-01-01T00:00:00Z'; // data from loopback\r\n$scope.test3 = new Date('2014-01-01 00:00:00'); // sample date\r\n```\r\n\r\n```html\r\n{{ test1 | date: 'MM dd, yyyy'}} -> 12 31, 2013\r\n{{ test2 | date: 'MM dd, yyyy'}} -> 12 31, 2013\r\n{{ test3 | date: 'MM dd, yyyy'}} -> 01 01, 2014\r\n```\r\n[Fiddle](http://jsfiddle.net/jby6Lanp/1/)\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/comments/165634316","html_url":"https://github.com/strongloop/loopback-sdk-angular/issues/196#issuecomment-165634316","issue_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/196","id":165634316,"user":{"login":"chule143","id":1250071,"avatar_url":"https://avatars.githubusercontent.com/u/1250071?v=3","gravatar_id":"","url":"https://api.github.com/users/chule143","html_url":"https://github.com/chule143","followers_url":"https://api.github.com/users/chule143/followers","following_url":"https://api.github.com/users/chule143/following{/other_user}","gists_url":"https://api.github.com/users/chule143/gists{/gist_id}","starred_url":"https://api.github.com/users/chule143/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chule143/subscriptions","organizations_url":"https://api.github.com/users/chule143/orgs","repos_url":"https://api.github.com/users/chule143/repos","events_url":"https://api.github.com/users/chule143/events{/privacy}","received_events_url":"https://api.github.com/users/chule143/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T01:43:05Z","updated_at":"2015-12-18T01:43:05Z","body":"Hi @davidcheung,\r\n\r\nThank you for your answer :) , this is the link in the google group:\r\n\r\n[https://groups.google.com/forum/#!topic/loopbackjs/1bLR_HMHzkA](https://groups.google.com/forum/#!topic/loopbackjs/1bLR_HMHzkA)"}}