{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/20544","labels_url":"https://api.github.com/repos/rails/rails/issues/20544/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/20544/comments","events_url":"https://api.github.com/repos/rails/rails/issues/20544/events","html_url":"https://github.com/rails/rails/pull/20544","id":87986096,"number":20544,"title":"Take UTC offset into account when assigning string value to time attributes.","user":{"login":"Envek","id":264400,"avatar_url":"https://avatars.githubusercontent.com/u/264400?v=3","gravatar_id":"","url":"https://api.github.com/users/Envek","html_url":"https://github.com/Envek","followers_url":"https://api.github.com/users/Envek/followers","following_url":"https://api.github.com/users/Envek/following{/other_user}","gists_url":"https://api.github.com/users/Envek/gists{/gist_id}","starred_url":"https://api.github.com/users/Envek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Envek/subscriptions","organizations_url":"https://api.github.com/users/Envek/orgs","repos_url":"https://api.github.com/users/Envek/repos","events_url":"https://api.github.com/users/Envek/events{/privacy}","received_events_url":"https://api.github.com/users/Envek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-13T11:10:30Z","updated_at":"2015-09-01T16:53:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/20544","html_url":"https://github.com/rails/rails/pull/20544","diff_url":"https://github.com/rails/rails/pull/20544.diff","patch_url":"https://github.com/rails/rails/pull/20544.patch"},"body":"This is a fix for bug when you try assign a string representation of time with UTC offset specified to ActiveRecord's object attribute of `time` type.\r\n\r\nExample:\r\n```ruby\r\nSchedule.arrival = '12:00:00+03:00'\r\nSchedule.arrival # returns 2000-01-01 12:00:00 UTC but it should be 2000-01-01 09:00:00 UTC\r\n```\r\n\r\nGist to reproduce: https://gist.github.com/Envek/3cd94d76f1ccd84b0253\r\n\r\nDiscovered on 4.2.0, so please also backport it."},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/136792420","html_url":"https://github.com/rails/rails/pull/20544#issuecomment-136792420","issue_url":"https://api.github.com/repos/rails/rails/issues/20544","id":136792420,"user":{"login":"pixeltrix","id":6321,"avatar_url":"https://avatars.githubusercontent.com/u/6321?v=3","gravatar_id":"","url":"https://api.github.com/users/pixeltrix","html_url":"https://github.com/pixeltrix","followers_url":"https://api.github.com/users/pixeltrix/followers","following_url":"https://api.github.com/users/pixeltrix/following{/other_user}","gists_url":"https://api.github.com/users/pixeltrix/gists{/gist_id}","starred_url":"https://api.github.com/users/pixeltrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixeltrix/subscriptions","organizations_url":"https://api.github.com/users/pixeltrix/orgs","repos_url":"https://api.github.com/users/pixeltrix/repos","events_url":"https://api.github.com/users/pixeltrix/events{/privacy}","received_events_url":"https://api.github.com/users/pixeltrix/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T16:53:08Z","updated_at":"2015-09-01T16:53:08Z","body":"@Envek is this also the case on 4.1? If it's a regression then we should change it but if not then we can't because it would break some apps. We could possibly change it on master but we need to deprecate/warn of the change first."}}