You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Do not report errors with Time.at usage when using the optional in keyword argument.
C: [Correctable]Rails/TimeZone: Do not useTime.atwithoutzone.UseoneofTime.zone.at,Time.current,Time.at.in_time_zone,Time.at.utc,Time.at.getlocal,Time.at.xmlschema,Time.at.iso8601,Time.at.jisx0301,Time.at.rfc3339,Time.at.httpdate,Time.at.to_i,Time.at.to_finstead.(https://rails.rubystyle.guide#time, http://danilenko.org/2012/7/6/rails_timezones)Time.at(1_666_293_663,in: 'UTC')
^^
Describe the solution you'd like
Consider Time.at with in: to be valid
Time.at(1_666_293_663,in: 'UTC')
Describe alternatives you've considered
Using .utc also works but I feel is less clear on its intent.
Is your feature request related to a problem? Please describe.
Do not report errors with
Time.at
usage when using the optionalin
keyword argument.Describe the solution you'd like
Consider
Time.at
within:
to be validDescribe alternatives you've considered
Using
.utc
also works but I feel is less clear on its intent.The text was updated successfully, but these errors were encountered: