travisjeffery/timecop — pull request #73 by tommeier (2013-03-08 02:20:50+00:00)
Title: [Bug fix] Timezones travel/freeze losing zone awareness on to_date or Date.today

Hi,

For edge cases with odd timezones, I noticed a bug where certain (+12hr) zones would create an incorrect `to_date` or `Date.today`.

I've used Marshall Is. as an example as they are +12 and generally made my tests fail.

The bug was caused by TimeStackItem on call of `def date` would not pass the current Time object, which may be Time.zone applicable. Thus on `to_date` the tz applicable values are stripped, rather than converted.

Best regards,

Tom