{"action":"created","issue":{"url":"https://api.github.com/repos/quantopian/zipline/issues/583","labels_url":"https://api.github.com/repos/quantopian/zipline/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/quantopian/zipline/issues/583/comments","events_url":"https://api.github.com/repos/quantopian/zipline/issues/583/events","html_url":"https://github.com/quantopian/zipline/issues/583","id":75986198,"number":583,"title":"BUG: env.next_trading_day() not Timezone aware","user":{"login":"warren-oneill","id":10514666,"avatar_url":"https://avatars.githubusercontent.com/u/10514666?v=3","gravatar_id":"","url":"https://api.github.com/users/warren-oneill","html_url":"https://github.com/warren-oneill","followers_url":"https://api.github.com/users/warren-oneill/followers","following_url":"https://api.github.com/users/warren-oneill/following{/other_user}","gists_url":"https://api.github.com/users/warren-oneill/gists{/gist_id}","starred_url":"https://api.github.com/users/warren-oneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warren-oneill/subscriptions","organizations_url":"https://api.github.com/users/warren-oneill/orgs","repos_url":"https://api.github.com/users/warren-oneill/repos","events_url":"https://api.github.com/users/warren-oneill/events{/privacy}","received_events_url":"https://api.github.com/users/warren-oneill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-13T13:34:30Z","updated_at":"2015-05-20T19:28:44Z","closed_at":null,"body":"In certain cases the trading day and market open can fall on different days when the timestamp is converted to utc. What this means is the ```env.next_trading_day()``` can get stuck in a continuous loop due to the timezone change. \r\nTill now this has probably been not much of an issue since the NYSE open times remain on the same day when converted to UTC but when used in markets where the difference between local tz and UTC is bigger this can be an issue.\r\nI tried simply converting to the local tz before ```normalize_date(test_date)``` is called but this wasn't sufficient. Anyone have any recommendations for other possible solutions? @ssanderson?"},"comment":{"url":"https://api.github.com/repos/quantopian/zipline/issues/comments/104006323","html_url":"https://github.com/quantopian/zipline/issues/583#issuecomment-104006323","issue_url":"https://api.github.com/repos/quantopian/zipline/issues/583","id":104006323,"user":{"login":"ssanderson","id":1588357,"avatar_url":"https://avatars.githubusercontent.com/u/1588357?v=3","gravatar_id":"","url":"https://api.github.com/users/ssanderson","html_url":"https://github.com/ssanderson","followers_url":"https://api.github.com/users/ssanderson/followers","following_url":"https://api.github.com/users/ssanderson/following{/other_user}","gists_url":"https://api.github.com/users/ssanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/ssanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssanderson/subscriptions","organizations_url":"https://api.github.com/users/ssanderson/orgs","repos_url":"https://api.github.com/users/ssanderson/repos","events_url":"https://api.github.com/users/ssanderson/events{/privacy}","received_events_url":"https://api.github.com/users/ssanderson/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T19:28:44Z","updated_at":"2015-05-20T19:28:44Z","body":"@warren-oneill glad you found a solution, and sorry for not being very responsive.  I've been pretty heads-down on a major API redesign, the *very* WIP form of which lives here: https://github.com/quantopian/zipline/pull/584/files."}}