mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 11:35:45 +08:00

`Date.today` relies on the system's timezone instead of `Rails.configuration.time_zone`. This can cause tests to fail when we assert against the date of a record. Just use `Time.zone.today` instead so that we always follow `Rails.configuration.time_zone`.