{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/4230","labels_url":"https://api.github.com/repos/nodejs/node/issues/4230/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/4230/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/4230/events","html_url":"https://github.com/nodejs/node/issues/4230","id":121464916,"number":4230,"title":"I can't set a default timezone on windows.","user":{"login":"Claud","id":400004,"avatar_url":"https://avatars.githubusercontent.com/u/400004?v=3","gravatar_id":"","url":"https://api.github.com/users/Claud","html_url":"https://github.com/Claud","followers_url":"https://api.github.com/users/Claud/followers","following_url":"https://api.github.com/users/Claud/following{/other_user}","gists_url":"https://api.github.com/users/Claud/gists{/gist_id}","starred_url":"https://api.github.com/users/Claud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Claud/subscriptions","organizations_url":"https://api.github.com/users/Claud/orgs","repos_url":"https://api.github.com/users/Claud/repos","events_url":"https://api.github.com/users/Claud/events{/privacy}","received_events_url":"https://api.github.com/users/Claud/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/nodejs/node/labels/windows","name":"windows","color":"9944dd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T11:39:04Z","updated_at":"2015-12-10T12:12:11Z","closed_at":null,"body":"This code works well on Linux but does not work on windows.\r\n\r\n```js\r\nprocess.env.TZ = 'UTC';\r\nconsole.log(new Date());\r\n```\r\n\r\nOn windows i see timezone from my os.\r\n\r\n> Thu Dec 10 2015 14:28:45 GMT+0300"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/163592974","html_url":"https://github.com/nodejs/node/issues/4230#issuecomment-163592974","issue_url":"https://api.github.com/repos/nodejs/node/issues/4230","id":163592974,"user":{"login":"bnoordhuis","id":275871,"avatar_url":"https://avatars.githubusercontent.com/u/275871?v=3","gravatar_id":"","url":"https://api.github.com/users/bnoordhuis","html_url":"https://github.com/bnoordhuis","followers_url":"https://api.github.com/users/bnoordhuis/followers","following_url":"https://api.github.com/users/bnoordhuis/following{/other_user}","gists_url":"https://api.github.com/users/bnoordhuis/gists{/gist_id}","starred_url":"https://api.github.com/users/bnoordhuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnoordhuis/subscriptions","organizations_url":"https://api.github.com/users/bnoordhuis/orgs","repos_url":"https://api.github.com/users/bnoordhuis/repos","events_url":"https://api.github.com/users/bnoordhuis/events{/privacy}","received_events_url":"https://api.github.com/users/bnoordhuis/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T12:12:11Z","updated_at":"2015-12-10T12:12:11Z","body":"Does it work when you set TZ on the command line?  V8 calls `_tzset()` on Windows, which respects TZ, but it runs quite early on.\r\n\r\nThe same caveat applies to Unices; the fact that setting TZ inside the program works is luck more than anything else.  If you want it to be reliable and future proof, run your program with `env TZ=UTC node app.js`."}}