moment/moment — pull request #1217 by hjdivad (2013-10-24 23:17:35+00:00)
Title: Fix regression re: support for mock dates.

`moment(input)` needs to determine if `input` is a date. The mechanism for
doing this was changed in ab7824f1dcca22bdb8b73f7f98cf660305a73211 to deal
with issue #1084, namely that in a node REPL `globals.Date` may not be the
same
`Date` used by moment.

However, this prevents users from changing `Date`, for example by mocking it
via something like [Timecop.js](https://github.com/jamesarosen/Timecop.js).

This commit makes date checking lenient enough to handle both cases.