{"action":"created","issue":{"url":"https://api.github.com/repos/telerik/kendo-angular/issues/1648","repository_url":"https://api.github.com/repos/telerik/kendo-angular","labels_url":"https://api.github.com/repos/telerik/kendo-angular/issues/1648/labels{/name}","comments_url":"https://api.github.com/repos/telerik/kendo-angular/issues/1648/comments","events_url":"https://api.github.com/repos/telerik/kendo-angular/issues/1648/events","html_url":"https://github.com/telerik/kendo-angular/issues/1648","id":338240233,"node_id":"MDU6SXNzdWUzMzgyNDAyMzM=","number":1648,"title":"DatePicker: Wrong timezones","user":{"login":"EricSch","id":25437,"node_id":"MDQ6VXNlcjI1NDM3","avatar_url":"https://avatars1.githubusercontent.com/u/25437?v=4","gravatar_id":"","url":"https://api.github.com/users/EricSch","html_url":"https://github.com/EricSch","followers_url":"https://api.github.com/users/EricSch/followers","following_url":"https://api.github.com/users/EricSch/following{/other_user}","gists_url":"https://api.github.com/users/EricSch/gists{/gist_id}","starred_url":"https://api.github.com/users/EricSch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricSch/subscriptions","organizations_url":"https://api.github.com/users/EricSch/orgs","repos_url":"https://api.github.com/users/EricSch/repos","events_url":"https://api.github.com/users/EricSch/events{/privacy}","received_events_url":"https://api.github.com/users/EricSch/received_events","type":"User","site_admin":false},"labels":[{"id":385282593,"node_id":"MDU6TGFiZWwzODUyODI1OTM=","url":"https://api.github.com/repos/telerik/kendo-angular/labels/Question","name":"Question","color":"cc317c","default":false},{"id":499829426,"node_id":"MDU6TGFiZWw0OTk4Mjk0MjY=","url":"https://api.github.com/repos/telerik/kendo-angular/labels/pkg:date-inputs","name":"pkg:date-inputs","color":"fef2c0","default":false},{"id":499832018,"node_id":"MDU6TGFiZWw0OTk4MzIwMTg=","url":"https://api.github.com/repos/telerik/kendo-angular/labels/pkg:intl","name":"pkg:intl","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-04T11:33:40Z","updated_at":"2018-07-05T06:40:49Z","closed_at":"2018-07-05T06:40:49Z","author_association":"NONE","body":"## I'm submitting a...\r\n* Bug report <!-- Please search for a similar issue before you submit a bug report. -->\r\n\r\n## Current behavior\r\nThe picked dates having different and wrong time zones. I'm aware that it is a \"Date\" picker, but the type 'Date' has a time part, so it is revelant also.\r\n\r\n## Expected behavior\r\nBoth dates having the correct time Zone ((UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna)\r\n\r\n## Minimal reproduction of the problem with instructions\r\nUsing a datepicker sample from your site, adding a second date picker and changing culture to 'de-CH':\r\nhttps://plnkr.co/edit/XvdyXftTyUnyLGrHD0ov?p=preview\r\n\r\nChange first date, then change second date.\r\nThe dates having different time zones.\r\n"},"comment":{"url":"https://api.github.com/repos/telerik/kendo-angular/issues/comments/402621056","html_url":"https://github.com/telerik/kendo-angular/issues/1648#issuecomment-402621056","issue_url":"https://api.github.com/repos/telerik/kendo-angular/issues/1648","id":402621056,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjYyMTA1Ng==","user":{"login":"ggkrustev","id":495188,"node_id":"MDQ6VXNlcjQ5NTE4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/495188?v=4","gravatar_id":"","url":"https://api.github.com/users/ggkrustev","html_url":"https://github.com/ggkrustev","followers_url":"https://api.github.com/users/ggkrustev/followers","following_url":"https://api.github.com/users/ggkrustev/following{/other_user}","gists_url":"https://api.github.com/users/ggkrustev/gists{/gist_id}","starred_url":"https://api.github.com/users/ggkrustev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggkrustev/subscriptions","organizations_url":"https://api.github.com/users/ggkrustev/orgs","repos_url":"https://api.github.com/users/ggkrustev/repos","events_url":"https://api.github.com/users/ggkrustev/events{/privacy}","received_events_url":"https://api.github.com/users/ggkrustev/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T06:40:49Z","updated_at":"2018-07-05T06:40:49Z","author_association":"CONTRIBUTOR","body":"Hi @EricSch,\r\n\r\nThe [JavaScript Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date), by specification, always uses the browser local timezone. This cannot be changed or altered by any means. More details about the possible timezone support that Kendo UI for Angular provides (not built-in the DatePicker) is to offset the date by some time. Note that the timezone won't be changed, as it is not possible by spec.\r\n\r\nhttps://www.telerik.com/kendo-angular-ui-develop/components/datemath/timezones/\r\n\r\nWith that in mind, the date created by the DatePicker is also in the browser local timezone (as it is a native JavaScript Date instance) and it inherits all specifics of the browser timezone.\r\n\r\nMy assumption for the observed difference is a possible DST change, which happens in March.\r\n\r\nhttps://www.timeanddate.com/time/change/netherlands/amsterdam?year=2000\r\n\r\nI am afraid that the only issue that is available in this case is to notify the users that they operate in their local timezone although a different one is specified. This is mainly due to the DST changes which cannot be controlled.\r\n\r\nI will close the thread as it doesn't report a bug report."}}
{"actor":{"display_login":"ggkrustev"}}