{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/21822","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21822/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21822/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21822/events","html_url":"https://github.com/pandas-dev/pandas/pull/21822","id":339263607,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5OTY0MjIw","number":21822,"title":"BUG/API: to_datetime preserves UTC offsets when parsing datetime strings","user":{"login":"mroeschke","id":10647082,"node_id":"MDQ6VXNlcjEwNjQ3MDgy","avatar_url":"https://avatars0.githubusercontent.com/u/10647082?v=4","gravatar_id":"","url":"https://api.github.com/users/mroeschke","html_url":"https://github.com/mroeschke","followers_url":"https://api.github.com/users/mroeschke/followers","following_url":"https://api.github.com/users/mroeschke/following{/other_user}","gists_url":"https://api.github.com/users/mroeschke/gists{/gist_id}","starred_url":"https://api.github.com/users/mroeschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroeschke/subscriptions","organizations_url":"https://api.github.com/users/mroeschke/orgs","repos_url":"https://api.github.com/users/mroeschke/repos","events_url":"https://api.github.com/users/mroeschke/events{/privacy}","received_events_url":"https://api.github.com/users/mroeschke/received_events","type":"User","site_admin":false},"labels":[{"id":76811,"node_id":"MDU6TGFiZWw3NjgxMQ==","url":"https://api.github.com/repos/pandas-dev/pandas/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":60458168,"node_id":"MDU6TGFiZWw2MDQ1ODE2OA==","url":"https://api.github.com/repos/pandas-dev/pandas/labels/Timezones","name":"Timezones","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-08T22:28:14Z","updated_at":"2018-07-27T20:08:43Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/pandas-dev/pandas/pulls/21822","html_url":"https://github.com/pandas-dev/pandas/pull/21822","diff_url":"https://github.com/pandas-dev/pandas/pull/21822.diff","patch_url":"https://github.com/pandas-dev/pandas/pull/21822.patch"},"body":"- [x] closes #17697\r\n- [x] closes #11736\r\n- [x] closes #21864\r\n- [x] precursor to fixing #15938\r\n- [x] tests added / passed\r\n- [x] passes `git diff upstream/master -u -- \"*.py\" | flake8 --diff`\r\n- [x] whatsnew entry\r\n\r\nThis PR makes `to_datetime(ts_string_with_offset)` and `DatetimeIndex([ts_string_with_offset])` to now match `Timestamp(ts_string_with_offset)`\r\n```\r\nThis branch\r\n\r\nIn [2]: Timestamp(\"2015-11-18 15:30:00+05:30\")\r\nOut[2]: Timestamp('2015-11-18 15:30:00+0530', tz='pytz.FixedOffset(330)')\r\n\r\nIn [3]: to_datetime(\"2015-11-18 15:30:00+05:30\")\r\nOut[3]: Timestamp('2015-11-18 15:30:00+0530', tz='pytz.FixedOffset(330)')\r\n\r\nIn [4]: DatetimeIndex([\"2015-11-18 15:30:00+05:30\"])\r\nOut[4]: DatetimeIndex(['2015-11-18 15:30:00+05:30'], dtype='datetime64[ns, pytz.FixedOffset(330)]', freq=None)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments/408526076","html_url":"https://github.com/pandas-dev/pandas/pull/21822#issuecomment-408526076","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21822","id":408526076,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODUyNjA3Ng==","user":{"login":"jbrockmendel","id":8078968,"node_id":"MDQ6VXNlcjgwNzg5Njg=","avatar_url":"https://avatars1.githubusercontent.com/u/8078968?v=4","gravatar_id":"","url":"https://api.github.com/users/jbrockmendel","html_url":"https://github.com/jbrockmendel","followers_url":"https://api.github.com/users/jbrockmendel/followers","following_url":"https://api.github.com/users/jbrockmendel/following{/other_user}","gists_url":"https://api.github.com/users/jbrockmendel/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrockmendel/subscriptions","organizations_url":"https://api.github.com/users/jbrockmendel/orgs","repos_url":"https://api.github.com/users/jbrockmendel/repos","events_url":"https://api.github.com/users/jbrockmendel/events{/privacy}","received_events_url":"https://api.github.com/users/jbrockmendel/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T20:08:43Z","updated_at":"2018-07-27T20:08:43Z","author_association":"MEMBER","body":"Does this make `Timestamp(\"now\")` match `to_datetime(\"now\")`?  Or \"today\"?"}}
{"actor":{"display_login":"jbrockmendel"}}