Skip to content

Commit

Permalink
Update old test for currently-accepted ancient TZ behavior.
Browse files Browse the repository at this point in the history
The logic here ends up using a local mean time (LMT) calculation
to determine what the timezone offset would be in pre-timezone
eras. In this case, America/Chicago at year 0 gets an offset of
-05:50:36 rather than the -06:00 you would expect with simple
timezone calculation. Since we trust Joda, we go with the LMT
result here rather than forcing logic to match MRI's results.
  • Loading branch information
headius committed Jan 13, 2015
1 parent 122c81b commit cd5683a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/regression/GH-652_time_add_spec.rb
Expand Up @@ -11,6 +11,6 @@
it 'handles BC time correctly' do
time = Time.new(0)
other_time = Time.new(2012, 5, 23, 12, 0, 0)
(time - other_time).should eq(-63504988500.0)
(time - other_time).should eq(-63504990564.0)
end
end

0 comments on commit cd5683a

Please sign in to comment.