{"action":"created","issue":{"url":"https://api.github.com/repos/vaadin/vaadin-date-picker/issues/60","repository_url":"https://api.github.com/repos/vaadin/vaadin-date-picker","labels_url":"https://api.github.com/repos/vaadin/vaadin-date-picker/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/vaadin/vaadin-date-picker/issues/60/comments","events_url":"https://api.github.com/repos/vaadin/vaadin-date-picker/issues/60/events","html_url":"https://github.com/vaadin/vaadin-date-picker/issues/60","id":136128173,"number":60,"title":"Wrong date gets selected when giving a string value","user":{"login":"vaadin-marcus","id":883698,"avatar_url":"https://avatars.githubusercontent.com/u/883698?v=3","gravatar_id":"","url":"https://api.github.com/users/vaadin-marcus","html_url":"https://github.com/vaadin-marcus","followers_url":"https://api.github.com/users/vaadin-marcus/followers","following_url":"https://api.github.com/users/vaadin-marcus/following{/other_user}","gists_url":"https://api.github.com/users/vaadin-marcus/gists{/gist_id}","starred_url":"https://api.github.com/users/vaadin-marcus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaadin-marcus/subscriptions","organizations_url":"https://api.github.com/users/vaadin-marcus/orgs","repos_url":"https://api.github.com/users/vaadin-marcus/repos","events_url":"https://api.github.com/users/vaadin-marcus/events{/privacy}","received_events_url":"https://api.github.com/users/vaadin-marcus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-24T17:25:48Z","updated_at":"2016-04-19T14:35:34Z","closed_at":"2016-02-29T15:33:21Z","body":"`<vaadin-date-picker label=\"Birthday\" value=\"2000-01-01\"></vaadin-date-picker>` results in\r\n<img width=\"312\" alt=\"screen shot 2016-02-24 at 9 05 13 am\" src=\"https://cloud.githubusercontent.com/assets/883698/13294362/80d36a24-dad8-11e5-89c3-6de17c406eb9.png\">\r\n\r\nMac Chrome / Pacific time zone"},"comment":{"url":"https://api.github.com/repos/vaadin/vaadin-date-picker/issues/comments/211949796","html_url":"https://github.com/vaadin/vaadin-date-picker/issues/60#issuecomment-211949796","issue_url":"https://api.github.com/repos/vaadin/vaadin-date-picker/issues/60","id":211949796,"user":{"login":"MarcosGalaviz","id":14163318,"avatar_url":"https://avatars.githubusercontent.com/u/14163318?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcosGalaviz","html_url":"https://github.com/MarcosGalaviz","followers_url":"https://api.github.com/users/MarcosGalaviz/followers","following_url":"https://api.github.com/users/MarcosGalaviz/following{/other_user}","gists_url":"https://api.github.com/users/MarcosGalaviz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcosGalaviz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcosGalaviz/subscriptions","organizations_url":"https://api.github.com/users/MarcosGalaviz/orgs","repos_url":"https://api.github.com/users/MarcosGalaviz/repos","events_url":"https://api.github.com/users/MarcosGalaviz/events{/privacy}","received_events_url":"https://api.github.com/users/MarcosGalaviz/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T14:35:34Z","updated_at":"2016-04-19T14:35:34Z","body":"Sorry I think I write wrong my message, this is de code where I call the web component: \r\n` <vaadin-date-picker label=\"Pick a date\" value={{valorFecha}} id=\"time\"></vaadin-date-picker>` \r\n\r\nthen `this.valorFecha` is the binding between the web component and this porperty:\r\n` valorFecha: {\r\n            type: String,\r\n            value:''\r\n        }`\r\n\r\nAnd then I have this code just to check the value and I dont understand why the day is always a day less:\r\n\r\n`var fechaConvertidaTimePicker = new Date(this.valorFecha);\r\n        var year = fechaConvertidaTimePicker.getFullYear();\r\n        var mes = fechaConvertidaTimePicker.getMonth();\r\n        var dia = fechaConvertidaTimePicker.getDate();\r\n`\r\n\r\nI just did this to \"fix\" the problem adding one day to the variable: \r\n`var dia = fechaConvertidaTimePicker.getDate()+1;`\r\n\r\nThanks a lot for your help\r\n\r\n\r\n\r\n"}}