{"action":"created","issue":{"url":"https://api.github.com/repos/kaydensigh/chromecalclock/issues/6","labels_url":"https://api.github.com/repos/kaydensigh/chromecalclock/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/kaydensigh/chromecalclock/issues/6/comments","events_url":"https://api.github.com/repos/kaydensigh/chromecalclock/issues/6/events","html_url":"https://github.com/kaydensigh/chromecalclock/issues/6","id":125193383,"number":6,"title":"Timezone incorrect when ChromeOS timezone is set automatically","user":{"login":"peterkaminski","id":169442,"avatar_url":"https://avatars.githubusercontent.com/u/169442?v=3","gravatar_id":"","url":"https://api.github.com/users/peterkaminski","html_url":"https://github.com/peterkaminski","followers_url":"https://api.github.com/users/peterkaminski/followers","following_url":"https://api.github.com/users/peterkaminski/following{/other_user}","gists_url":"https://api.github.com/users/peterkaminski/gists{/gist_id}","starred_url":"https://api.github.com/users/peterkaminski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterkaminski/subscriptions","organizations_url":"https://api.github.com/users/peterkaminski/orgs","repos_url":"https://api.github.com/users/peterkaminski/repos","events_url":"https://api.github.com/users/peterkaminski/events{/privacy}","received_events_url":"https://api.github.com/users/peterkaminski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-06T15:07:59Z","updated_at":"2016-01-09T17:26:44Z","closed_at":null,"body":"When I traveled to another timezone, I had my Time/Date settings set to automatically update timezone, which it did.  The timezone detection library didn't change, though, so Calendar Clock displayed the wrong timezone.  Setting the timezone manually fixed the problem, but it's suboptimal to have to set the timezone manually.\r\n\r\nI filed this issue for the timezone detection library: https://bitbucket.org/pellepim/jstimezonedetect/issues/134/timezone-detection-incorrect"},"comment":{"url":"https://api.github.com/repos/kaydensigh/chromecalclock/issues/comments/170261514","html_url":"https://github.com/kaydensigh/chromecalclock/issues/6#issuecomment-170261514","issue_url":"https://api.github.com/repos/kaydensigh/chromecalclock/issues/6","id":170261514,"user":{"login":"peterkaminski","id":169442,"avatar_url":"https://avatars.githubusercontent.com/u/169442?v=3","gravatar_id":"","url":"https://api.github.com/users/peterkaminski","html_url":"https://github.com/peterkaminski","followers_url":"https://api.github.com/users/peterkaminski/followers","following_url":"https://api.github.com/users/peterkaminski/following{/other_user}","gists_url":"https://api.github.com/users/peterkaminski/gists{/gist_id}","starred_url":"https://api.github.com/users/peterkaminski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterkaminski/subscriptions","organizations_url":"https://api.github.com/users/peterkaminski/orgs","repos_url":"https://api.github.com/users/peterkaminski/repos","events_url":"https://api.github.com/users/peterkaminski/events{/privacy}","received_events_url":"https://api.github.com/users/peterkaminski/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T17:26:44Z","updated_at":"2016-01-09T17:26:44Z","body":"I am now home. I closed chromecalclock there, and reopened it here, but I haven't changed my time zone settings yet.\r\n\r\njstimezonedetect and chromecalclock report my timezone as America/Los_Angeles (which is GMT-8, and also, coincidentally, where my home is), even though my ChromeOS timezone is manually set to GMT-5.  So, even though chromecalclock was displaying time according to my OS timezone settings when I was remote, either closing the app and reopening it, or (presumably less likely) moving geographically to a new timezone, caused it to reset to displaying GMT-8.\r\n\r\nOn my Chromebook, `Date().toString()` in the Chrome console reports a the correct time according to my ChromeOS time settings, that ends in \"GMT-0500 (EST)\", so it's got the same timezone as my ChromeOS settings.\r\n\r\nMy suggestion would be to add a new settings item, \"Default time zone\", which would be similar to the \"Extra time zones\" section, and just above it.  You could have a selection or checkbox for \"Auto-detect\" which would do the same action as present, but could be manually overridden so the display could be corrected manually.\r\n\r\nThe settings dialog is getting full, though -- I'm not sure how you would resolve needing more vertical space.\r\n\r\nA different solution would be to not special-case clock0, and include it in the \"add clock\" and \"set time zone\" controls."}}