{"action":"created","issue":{"url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/803","labels_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/803/comments","events_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/803/events","html_url":"https://github.com/Eonasdan/bootstrap-datetimepicker/issues/803","id":56127265,"number":803,"title":"datetimepicker is not compatible with moment-timezone with default timezone set","user":{"login":"tmotyl","id":515397,"avatar_url":"https://avatars.githubusercontent.com/u/515397?v=3","gravatar_id":"","url":"https://api.github.com/users/tmotyl","html_url":"https://github.com/tmotyl","followers_url":"https://api.github.com/users/tmotyl/followers","following_url":"https://api.github.com/users/tmotyl/following{/other_user}","gists_url":"https://api.github.com/users/tmotyl/gists{/gist_id}","starred_url":"https://api.github.com/users/tmotyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmotyl/subscriptions","organizations_url":"https://api.github.com/users/tmotyl/orgs","repos_url":"https://api.github.com/users/tmotyl/repos","events_url":"https://api.github.com/users/tmotyl/events{/privacy}","received_events_url":"https://api.github.com/users/tmotyl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-31T14:50:57Z","updated_at":"2015-03-06T13:03:42Z","closed_at":null,"body":"Since version 2.9.0 of moment js and moment-timezone 0.3.0\r\nyou can set the default timezone for the newly created moment objects\r\n```\r\nmoment.tz.setDefault('Australia/Darwin');\r\n````\r\nsee \r\nhttps://github.com/moment/moment-timezone/issues/15\r\nhttp://momentjs.com/timezone/docs/#/using-timezones/default-timezone/\r\n\r\nHowever if you set the default timezone, then the datetimepicker is changing the time, when you change the date.\r\nHow to reproduce:\r\n1. set default timezone\r\n2. open datapicker\r\n3. select some date and time\r\n4. change the date\r\nyou will notice that after changing the date, time was also changed"},"comment":{"url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/comments/77555381","html_url":"https://github.com/Eonasdan/bootstrap-datetimepicker/issues/803#issuecomment-77555381","issue_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/803","id":77555381,"user":{"login":"JuliusOnGitHub","id":759067,"avatar_url":"https://avatars.githubusercontent.com/u/759067?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliusOnGitHub","html_url":"https://github.com/JuliusOnGitHub","followers_url":"https://api.github.com/users/JuliusOnGitHub/followers","following_url":"https://api.github.com/users/JuliusOnGitHub/following{/other_user}","gists_url":"https://api.github.com/users/JuliusOnGitHub/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliusOnGitHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliusOnGitHub/subscriptions","organizations_url":"https://api.github.com/users/JuliusOnGitHub/orgs","repos_url":"https://api.github.com/users/JuliusOnGitHub/repos","events_url":"https://api.github.com/users/JuliusOnGitHub/events{/privacy}","received_events_url":"https://api.github.com/users/JuliusOnGitHub/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T13:03:42Z","updated_at":"2015-03-06T13:03:42Z","body":"+1"}}