]> git.openstreetmap.org Git - rails.git/commit
Fix test to work in non-UK timezones
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Jun 2023 15:29:26 +0000 (16:29 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Jun 2023 15:46:06 +0000 (16:46 +0100)
commit2f7642aa035a82576ee4bb69c284005d731c081e
tree03f1adcce73a48454d17424b51edc5c30e1a1db5
parent0452a07e00caa9ec891a70f523cf4b1bdaf581ac
Fix test to work in non-UK timezones

Time.new(...).utc is not the same as Time.utc(...). The
first creates a given date in local time, and then converts that to
utc, whereas the second creates the given time in UTC.
test/helpers/application_helper_test.rb