jtrupiano/timecop — pull request #26 by mikowitz (2012-04-24 21:30:45+00:00)
Title: Ruby 1.9.2+ fix for Timecop

Hey John,

Between Ruby 1.9.1 and 1.9.2, Date.local changed. In 1.9.1 and earlier, passing a 1 or 2 digit would set the year to that year of the current century. In 1.9.2+, it sets it to 00(0), which causes problems if you're using Timecop.freeze with no arguments in tests dealing with setting default timestamp values.

I've forked Timecop and patched this (have it set to 2000, so that default behavior is maintained) so we can continue using it for our project, and I'm not sure how actively you're maintaining the original gem, but I figured I'd throw this upstream and see if it's something you want to pull in.

Thanks!

--Michael