{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2342","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2342/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2342/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2342/events","html_url":"https://github.com/bbatsov/rubocop/issues/2342","id":113003755,"number":2342,"title":"Rails/TimeZone cop complaints about Time.now.in_time_zone","user":{"login":"sstralenia","id":3617641,"avatar_url":"https://avatars.githubusercontent.com/u/3617641?v=3","gravatar_id":"","url":"https://api.github.com/users/sstralenia","html_url":"https://github.com/sstralenia","followers_url":"https://api.github.com/users/sstralenia/followers","following_url":"https://api.github.com/users/sstralenia/following{/other_user}","gists_url":"https://api.github.com/users/sstralenia/gists{/gist_id}","starred_url":"https://api.github.com/users/sstralenia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstralenia/subscriptions","organizations_url":"https://api.github.com/users/sstralenia/orgs","repos_url":"https://api.github.com/users/sstralenia/repos","events_url":"https://api.github.com/users/sstralenia/events{/privacy}","received_events_url":"https://api.github.com/users/sstralenia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-23T11:42:18Z","updated_at":"2015-10-27T23:08:26Z","closed_at":null,"body":"I have such line in my code:\r\n```ruby\r\nTime.now.in_time_zone(@time_zone)\r\n```\r\n\r\nAnd rubocop complaints:\r\n```ruby\r\napp/controllers/api/timelines_controller.rb:51:10: C: Rails/TimeZone: Do not use Time.now without zone. Use Time.zone.now instead.\r\n    Time.now.in_time_zone(@time_zone)\r\n         ^^^\r\n```\r\n\r\nIs it a bug in rubocop? Or may be I make something wrong?"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/151671283","html_url":"https://github.com/bbatsov/rubocop/issues/2342#issuecomment-151671283","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2342","id":151671283,"user":{"login":"sstralenia","id":3617641,"avatar_url":"https://avatars.githubusercontent.com/u/3617641?v=3","gravatar_id":"","url":"https://api.github.com/users/sstralenia","html_url":"https://github.com/sstralenia","followers_url":"https://api.github.com/users/sstralenia/followers","following_url":"https://api.github.com/users/sstralenia/following{/other_user}","gists_url":"https://api.github.com/users/sstralenia/gists{/gist_id}","starred_url":"https://api.github.com/users/sstralenia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstralenia/subscriptions","organizations_url":"https://api.github.com/users/sstralenia/orgs","repos_url":"https://api.github.com/users/sstralenia/repos","events_url":"https://api.github.com/users/sstralenia/events{/privacy}","received_events_url":"https://api.github.com/users/sstralenia/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T23:08:26Z","updated_at":"2015-10-27T23:08:26Z","body":"@mikegee Yes, of course, I know about ```#current```, but I want to figure out in this concrete situation."}}