Patch to allow two-digit years for date and datetime fields

Hi there,

I submitted a patch today to correct an issue I kept running into,
that users would enter in a date of 01/01/90 in a form and 0090-01-01
would be saved to the database. With my patch, Rails will correctly
enter 1990-01-01 into the database.

Ticket is at:
And the patch itself is:

This is my first contribution to the Rails core and while I've
followed the contribution guide, I'm anxious to make sure my patch
conforms to whatever most people in Rails expect, so please examine it
critically. Thanks.