{"action":"created","issue":{"url":"https://api.github.com/repos/StackStorm/st2/issues/1630","labels_url":"https://api.github.com/repos/StackStorm/st2/issues/1630/labels{/name}","comments_url":"https://api.github.com/repos/StackStorm/st2/issues/1630/comments","events_url":"https://api.github.com/repos/StackStorm/st2/issues/1630/events","html_url":"https://github.com/StackStorm/st2/pull/1630","id":88010207,"number":1630,"title":"Make sure all the datetime objects we are working with are in UTC","user":{"login":"Kami","id":125088,"avatar_url":"https://avatars.githubusercontent.com/u/125088?v=3","gravatar_id":"","url":"https://api.github.com/users/Kami","html_url":"https://github.com/Kami","followers_url":"https://api.github.com/users/Kami/followers","following_url":"https://api.github.com/users/Kami/following{/other_user}","gists_url":"https://api.github.com/users/Kami/gists{/gist_id}","starred_url":"https://api.github.com/users/Kami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kami/subscriptions","organizations_url":"https://api.github.com/users/Kami/orgs","repos_url":"https://api.github.com/users/Kami/repos","events_url":"https://api.github.com/users/Kami/events{/privacy}","received_events_url":"https://api.github.com/users/Kami/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-13T14:08:01Z","updated_at":"2015-06-15T21:08:31Z","closed_at":"2015-06-15T09:57:05Z","pull_request":{"url":"https://api.github.com/repos/StackStorm/st2/pulls/1630","html_url":"https://github.com/StackStorm/st2/pull/1630","diff_url":"https://github.com/StackStorm/st2/pull/1630.diff","patch_url":"https://github.com/StackStorm/st2/pull/1630.patch"},"body":"Currently, `isotime.parse` returns datetime object with a timezone which is defined in the string which is parsed.\r\n\r\nThis means that if a users post ISO8601 timestamp with a non UTC timezone to the API things will go bad since we never convert this to UTC before we store in the database (among other things, this also breaks `ComplexDateTimeField`).\r\n\r\nWith this pull request, all the `datetime` objects which are returned by `isotime.parse` are now converted to UTC by default. In addition to that, I also included some other timezone related fixes and improvements.\r\n\r\nP.S. I noted this as a blocker for v0.11.2 in https://github.com/StackStorm/st2/commit/5df21b168c34bdf82bf66cb3ce08e27a474eb057#commitcomment-11651986, but my comment was either missed or ignored :P"},"comment":{"url":"https://api.github.com/repos/StackStorm/st2/issues/comments/112212712","html_url":"https://github.com/StackStorm/st2/pull/1630#issuecomment-112212712","issue_url":"https://api.github.com/repos/StackStorm/st2/issues/1630","id":112212712,"user":{"login":"lakshmi-kannan","id":1839421,"avatar_url":"https://avatars.githubusercontent.com/u/1839421?v=3","gravatar_id":"","url":"https://api.github.com/users/lakshmi-kannan","html_url":"https://github.com/lakshmi-kannan","followers_url":"https://api.github.com/users/lakshmi-kannan/followers","following_url":"https://api.github.com/users/lakshmi-kannan/following{/other_user}","gists_url":"https://api.github.com/users/lakshmi-kannan/gists{/gist_id}","starred_url":"https://api.github.com/users/lakshmi-kannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakshmi-kannan/subscriptions","organizations_url":"https://api.github.com/users/lakshmi-kannan/orgs","repos_url":"https://api.github.com/users/lakshmi-kannan/repos","events_url":"https://api.github.com/users/lakshmi-kannan/events{/privacy}","received_events_url":"https://api.github.com/users/lakshmi-kannan/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T21:08:31Z","updated_at":"2015-06-15T21:08:31Z","body":"This is great! Thanks for doing this. "}}