{"action":"created","issue":{"url":"https://api.github.com/repos/date-fns/date-fns/issues/556","repository_url":"https://api.github.com/repos/date-fns/date-fns","labels_url":"https://api.github.com/repos/date-fns/date-fns/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/date-fns/date-fns/issues/556/comments","events_url":"https://api.github.com/repos/date-fns/date-fns/issues/556/events","html_url":"https://github.com/date-fns/date-fns/issues/556","id":257000730,"number":556,"title":"Set a timezone","user":{"login":"ahmedelgabri","id":63876,"avatar_url":"https://avatars0.githubusercontent.com/u/63876?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmedelgabri","html_url":"https://github.com/ahmedelgabri","followers_url":"https://api.github.com/users/ahmedelgabri/followers","following_url":"https://api.github.com/users/ahmedelgabri/following{/other_user}","gists_url":"https://api.github.com/users/ahmedelgabri/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmedelgabri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmedelgabri/subscriptions","organizations_url":"https://api.github.com/users/ahmedelgabri/orgs","repos_url":"https://api.github.com/users/ahmedelgabri/repos","events_url":"https://api.github.com/users/ahmedelgabri/events{/privacy}","received_events_url":"https://api.github.com/users/ahmedelgabri/received_events","type":"User","site_admin":false},"labels":[{"id":467804990,"url":"https://api.github.com/repos/date-fns/date-fns/labels/Support","name":"Support","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-12T10:53:44Z","updated_at":"2018-04-06T14:34:04Z","closed_at":"2017-09-12T11:34:38Z","author_association":"NONE","body":"What is the best way to set a timezone on the date object?\r\n\r\n```js\r\nconst TODAY = new Date();\r\n\r\nconst TZ = 'America/New_York'\r\n// set the date in TODAY to America/New_York timezone\r\n\r\n// or\r\n\r\nconst TZ_OFFSET = -240\r\n// set the date in TODAY to America/New_York using the offset\r\n```"},"comment":{"url":"https://api.github.com/repos/date-fns/date-fns/issues/comments/379272160","html_url":"https://github.com/date-fns/date-fns/issues/556#issuecomment-379272160","issue_url":"https://api.github.com/repos/date-fns/date-fns/issues/556","id":379272160,"user":{"login":"markstos","id":25829,"avatar_url":"https://avatars1.githubusercontent.com/u/25829?v=4","gravatar_id":"","url":"https://api.github.com/users/markstos","html_url":"https://github.com/markstos","followers_url":"https://api.github.com/users/markstos/followers","following_url":"https://api.github.com/users/markstos/following{/other_user}","gists_url":"https://api.github.com/users/markstos/gists{/gist_id}","starred_url":"https://api.github.com/users/markstos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstos/subscriptions","organizations_url":"https://api.github.com/users/markstos/orgs","repos_url":"https://api.github.com/users/markstos/repos","events_url":"https://api.github.com/users/markstos/events{/privacy}","received_events_url":"https://api.github.com/users/markstos/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T14:34:04Z","updated_at":"2018-04-06T14:34:04Z","author_association":"NONE","body":"Hardcoding time-zone offsets is a bad practice. They often break when Daylight Saving Time changes. That's why proper time zone support is helpful-- you can get the correct answer all year round!"}}
{"actor":{"display_login":"markstos"}}