This project is archived and is in readonly mode.
Changeset [636ffa1f089a51c98fce616191846eaba93d7b87] by Xavier Noria
Revision 636ffa1f089a51c98fce616191846eaba93d7b87,
committed by Xavier Noria
· May 9th, 2010 @ 12:20 AM
Backports Date#>> from 1.9 so that calculations do the right thing around the calendar reform
Our next_month gives November for some late dates in September
of 1582.
Related methods, last_*, and in general advance have the same
issues.
This commit fixes those, see the test suite for expected behavior,
which
we still run in 1.9 to ensure it matches as we do with other
methods
defined in Date in 1.9.
http://github.com/rails/rails/commit/636ffa1f089a51c98fce616191846e...
3 changed files
-
M
activesupport/CHANGELOG -
M
activesupport/lib/active_support/core_ext/date/calculations.rb -
M
activesupport/test/core_ext/date_ext_test.rb