{"action":"created","issue":{"url":"https://api.github.com/repos/davispuh/chronic/issues/1","repository_url":"https://api.github.com/repos/davispuh/chronic","labels_url":"https://api.github.com/repos/davispuh/chronic/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/davispuh/chronic/issues/1/comments","events_url":"https://api.github.com/repos/davispuh/chronic/issues/1/events","html_url":"https://github.com/davispuh/chronic/pull/1","id":254845477,"number":1,"title":"support ActiveSupport::TimeZone as a time_class by using :local inste…","user":{"login":"alexagranov","id":125607,"avatar_url":"https://avatars1.githubusercontent.com/u/125607?v=4","gravatar_id":"","url":"https://api.github.com/users/alexagranov","html_url":"https://github.com/alexagranov","followers_url":"https://api.github.com/users/alexagranov/followers","following_url":"https://api.github.com/users/alexagranov/following{/other_user}","gists_url":"https://api.github.com/users/alexagranov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexagranov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexagranov/subscriptions","organizations_url":"https://api.github.com/users/alexagranov/orgs","repos_url":"https://api.github.com/users/alexagranov/repos","events_url":"https://api.github.com/users/alexagranov/events{/privacy}","received_events_url":"https://api.github.com/users/alexagranov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-03T01:02:29Z","updated_at":"2017-09-27T19:12:45Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/davispuh/chronic/pulls/1","html_url":"https://github.com/davispuh/chronic/pull/1","diff_url":"https://github.com/davispuh/chronic/pull/1.diff","patch_url":"https://github.com/davispuh/chronic/pull/1.patch"},"body":"…ad of :new\r\n\r\nActiveSupport::TimeZone doesn't have a `new` method.  I can add tests for AR::TimeZone but just giving you an FYI here..."},"comment":{"url":"https://api.github.com/repos/davispuh/chronic/issues/comments/332625900","html_url":"https://github.com/davispuh/chronic/pull/1#issuecomment-332625900","issue_url":"https://api.github.com/repos/davispuh/chronic/issues/1","id":332625900,"user":{"login":"davispuh","id":651800,"avatar_url":"https://avatars2.githubusercontent.com/u/651800?v=4","gravatar_id":"","url":"https://api.github.com/users/davispuh","html_url":"https://github.com/davispuh","followers_url":"https://api.github.com/users/davispuh/followers","following_url":"https://api.github.com/users/davispuh/following{/other_user}","gists_url":"https://api.github.com/users/davispuh/gists{/gist_id}","starred_url":"https://api.github.com/users/davispuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davispuh/subscriptions","organizations_url":"https://api.github.com/users/davispuh/orgs","repos_url":"https://api.github.com/users/davispuh/repos","events_url":"https://api.github.com/users/davispuh/events{/privacy}","received_events_url":"https://api.github.com/users/davispuh/received_events","type":"User","site_admin":false},"created_at":"2017-09-27T19:12:45Z","updated_at":"2017-09-27T19:12:45Z","author_association":"OWNER","body":"This isn't right, because `::local` is only for [Time](http://ruby-doc.org/core-2.4.2/Time.html) but not for [Date](http://ruby-doc.org/stdlib-2.4.2/libdoc/date/rdoc/Date.html) and [DateTime](http://ruby-doc.org/stdlib-2.4.2/libdoc/date/rdoc/DateTime.html). `::new` is for these all 3 so `time_class` can be any of them.\r\n\r\nI would suggest to extend (or monkey patch) `ActiveSupport::TimeZone` with `::new` so they can be used here. Besides `anchor_object.rb` isn't only file where `::new` is used, there are other places too.\r\n\r\nAlso yee, would need tests too.\r\n"}}
{"actor":{"display_login":"davispuh"}}