Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours a year.

This commit is contained in:
Matt Amos 2009-03-29 01:31:04 +00:00
parent 8140c99313
commit afcb345014
12 changed files with 22 additions and 22 deletions

View file

@ -37,7 +37,7 @@ class ChangesetControllerTest < ActionController::TestCase
assert_equal Rational(1,24), duration , "initial idle timeout should be an hour (#{cs.created_at} -> #{cs.closed_at})"
else
# must be number of seconds...
assert_equal 3600.0, duration , "initial idle timeout should be an hour (#{cs.created_at} -> #{cs.closed_at})"
assert_equal 3600, duration.round, "initial idle timeout should be an hour (#{cs.created_at} -> #{cs.closed_at})"
end
end