mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-29 21:38:49 +01:00
fix failing test on timezones and remove debug message
This commit is contained in:
parent
cb46a8461e
commit
fee1e3b504
4 changed files with 6 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ class PreferenceTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_parse_date
|
||||
date = Time.new(2007, 05, 20).in_time_zone(@admin_user.preference.time_zone).at_midnight
|
||||
date = UserTime.new(@admin_user).midnight(Time.new(2007, 05, 20, 0, 0, 0))
|
||||
assert_equal date.to_s, @admin_user.preference.parse_date('20/5/2007').to_s
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue