{"action":"created","issue":{"url":"https://api.github.com/repos/node-schedule/node-schedule/issues/217","labels_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/217/comments","events_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/217/events","html_url":"https://github.com/node-schedule/node-schedule/issues/217","id":120313681,"number":217,"title":"Timezone support in Recurrence rules","user":{"login":"tejasmanohar","id":5959235,"avatar_url":"https://avatars.githubusercontent.com/u/5959235?v=3","gravatar_id":"","url":"https://api.github.com/users/tejasmanohar","html_url":"https://github.com/tejasmanohar","followers_url":"https://api.github.com/users/tejasmanohar/followers","following_url":"https://api.github.com/users/tejasmanohar/following{/other_user}","gists_url":"https://api.github.com/users/tejasmanohar/gists{/gist_id}","starred_url":"https://api.github.com/users/tejasmanohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejasmanohar/subscriptions","organizations_url":"https://api.github.com/users/tejasmanohar/orgs","repos_url":"https://api.github.com/users/tejasmanohar/repos","events_url":"https://api.github.com/users/tejasmanohar/events{/privacy}","received_events_url":"https://api.github.com/users/tejasmanohar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/node-schedule/node-schedule/labels/feature","name":"feature","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T01:44:33Z","updated_at":"2015-12-04T01:52:32Z","closed_at":null,"body":"I think we should support a timezone option for creating recurrence rules. Moment timezone is probably the best bet. I don't think this is necessary in date-based scheduling, as it accepts a date and you can easily make a JS Date with timezone input using moment-timezone + moment's .toDate()... or use UTC / milisecs. However, the only way (as far as I know) to schedule recurrence rules by timezone right now that doesn't depend on system time is comparing the intended time you want to schedule X (timezone-specific, use moment timezone or an ISO string to make the date etc) against the current time (in your system's timezone) to figure out what \"hour\" and \"day\" should be used for the recurring rule."},"comment":{"url":"https://api.github.com/repos/node-schedule/node-schedule/issues/comments/161848610","html_url":"https://github.com/node-schedule/node-schedule/issues/217#issuecomment-161848610","issue_url":"https://api.github.com/repos/node-schedule/node-schedule/issues/217","id":161848610,"user":{"login":"tejasmanohar","id":5959235,"avatar_url":"https://avatars.githubusercontent.com/u/5959235?v=3","gravatar_id":"","url":"https://api.github.com/users/tejasmanohar","html_url":"https://github.com/tejasmanohar","followers_url":"https://api.github.com/users/tejasmanohar/followers","following_url":"https://api.github.com/users/tejasmanohar/following{/other_user}","gists_url":"https://api.github.com/users/tejasmanohar/gists{/gist_id}","starred_url":"https://api.github.com/users/tejasmanohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejasmanohar/subscriptions","organizations_url":"https://api.github.com/users/tejasmanohar/orgs","repos_url":"https://api.github.com/users/tejasmanohar/repos","events_url":"https://api.github.com/users/tejasmanohar/events{/privacy}","received_events_url":"https://api.github.com/users/tejasmanohar/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T01:52:32Z","updated_at":"2015-12-04T01:52:32Z","body":"As per implementation, using moment-timezone is probably our best bet, but I'm open to any other options. I'd think the API should look something like a recurrence rule accepting the option of `timezone`\r\n\r\ni.e. `rule.timezone = 'America/Los_Angeles'`"}}