Use timezone aware methods, fixes #26419
What does this MR do?
This MR uses timezone aware methods when dealing with time. It fixes Ticket #26419 (moved).
I removed the deactivated cop Rails/TimeZone
in .rubocop_todo.yml
.
It changes:
-
Time.new
,Time.now
toTime.zone.now
-
DateTime.parse
,Time.parse
toTime.zone.parse
-
Time.at
toTime.zone.at
What are the relevant issue numbers?
Closes #26419 (moved)
/cc @adamniedzielski