vesln/timekeeper — pull request #3 by jpallen (2012-08-07 09:17:52+00:00)
Title: Only replace Date with FakeDate when necessary

I see no reason to need to override the Date object with FakeDate until one of the timekeeper features is actually enabled. This pull request makes it so that Date is only replaced when timekeeper.freeze or timekeeper.travel is called. The original Date object is then restored when timekeeper.reset is called.

This solves issue #2 which is caused by the Mongoose not understanding what to do with FakeDate when it expects Date.