Use timezone aware methods for dealing with time
Description
We have many places in the codebase where we use methods for dealing with time and dates that come from Ruby and are not aware of the configured application timezone. These are for example Time.now
, Time.parse
and Time.at
. This works fine if the server timezone is the same as the configured timezone, but will cause troubles if it's not the case.
Proposal
Replace methods that are not timezone aware with methods that are timezone aware. The list is in references.