{"push_id":2471797940,"size":1,"distinct_size":1,"ref":"refs/heads/ignore-httpdate-rails-time-zone","head":"350b9f8660dfb5c7b686c95d13a794a4c7898941","before":"3654c9ab8fa486bec31c3bbdeb74b1f325ce90dd","commits":[{"sha":"350b9f8660dfb5c7b686c95d13a794a4c7898941","author":{"name":"Aaron Kromer","email":"13c89775a4bea00cd43953fd097f62fed91fc240@users.noreply.github.com"},"message":"Add `httpdate` to accepted Rails time zone methods\n\nThis format is required for certain header fields (e.g.\n\"If-Modified-Since\"); which may be set in tests/specs. Using\n[`httpdate`](https://ruby-doc.org/stdlib-2.5.0/libdoc/time/rdoc/Time.html#method-i-httpdate)\nconverts the time to a string using the HTTP-date format defined by [RFC\n2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3).\nThis method always converts the time to UTC.\n\nThe current Rubocop would require one of the following as a workaround:\n\n  ```ruby\n  Time.zone.now.httpdate\n  Time.now.utc.httpdate\n  Time.at(0).utc.httpdate\n  ```\n\nWhile this works, it is redundant and requires a unnecessary conversion\ncall. This change would allow:\n\n  ```ruby\n  Time.now.httpdate\n  Time.at(0).httpdate\n  ```","distinct":true,"url":"https://api.github.com/repos/cupakromer/rubocop/commits/350b9f8660dfb5c7b686c95d13a794a4c7898941"}]}
{"actor":{"display_login":"cupakromer"}}