{"action":"opened","issue":{"url":"https://api.github.com/repos/moment/moment/issues/2857","labels_url":"https://api.github.com/repos/moment/moment/issues/2857/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/2857/comments","events_url":"https://api.github.com/repos/moment/moment/issues/2857/events","html_url":"https://github.com/moment/moment/issues/2857","id":124767677,"number":2857,"title":"Broke MockDate","user":{"login":"nowells","id":23833,"avatar_url":"https://avatars.githubusercontent.com/u/23833?v=3","gravatar_id":"","url":"https://api.github.com/users/nowells","html_url":"https://github.com/nowells","followers_url":"https://api.github.com/users/nowells/followers","following_url":"https://api.github.com/users/nowells/following{/other_user}","gists_url":"https://api.github.com/users/nowells/gists{/gist_id}","starred_url":"https://api.github.com/users/nowells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nowells/subscriptions","organizations_url":"https://api.github.com/users/nowells/orgs","repos_url":"https://api.github.com/users/nowells/repos","events_url":"https://api.github.com/users/nowells/events{/privacy}","received_events_url":"https://api.github.com/users/nowells/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-04T14:23:40Z","updated_at":"2016-01-04T14:23:40Z","closed_at":null,"body":"The commit https://github.com/moment/moment/commit/b1d686ed481e2211cb81a1c60eca850fcea93f21 appears to have broken the ability to use [MockDate](https://www.npmjs.com/package/mockdate). I am not certain if this is something that you care to support, or if you view this as the responsibility of MockDate to fix, however, since MockDate simply patches the global Date object, it would seem breaking this generic mocking lib is a bad thing. Let me know what you think.\r\n\r\nThis used to work, but now breaks.\r\n\r\n```js\r\nconst moment = require('moment'),\r\n    mockdate = require('mockdate'),\r\n    frozenTime = moment();\r\n\r\nmockdate.set(frozenTime);\r\nconsole.log('Frozen time: ', frozenTime.toISOString());\r\n\r\nsetTimeout(function() {\r\n    console.log('Moment time: ', moment().toISOString());\r\n}, 1000);\r\n```\r\n\r\n```bash\r\n$ node index.js\r\nFrozen time:  2016-01-04T14:21:55.335Z\r\nMoment time:  2016-01-04T14:21:56.355Z\r\n```"}}