This project is archived and is in readonly mode.

#3212 ✓invalid
Mina Naguib

Almost 1 second extra in time subtraction (rails 2.3.4)

Reported by Mina Naguib | September 15th, 2009 @ 09:00 PM

Previously, in rails 2.3.3 and earlier:

1.day.ago.end_of_day - 1.day.ago.beginning_of_day => 86399.0

However, with rails 2.3.4:

1.day.ago.end_of_day - 1.day.ago.beginning_of_day => 86399.9999990463

I believe that the old behavior is much more correct. The new behavior almost adds 1 whole second.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages