Use timezone aware methods for dealing with time
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
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.
Links / references
Edited by 🤖 GitLab Bot 🤖