{"action":"created","issue":{"url":"https://api.github.com/repos/moment/moment/issues/2512","labels_url":"https://api.github.com/repos/moment/moment/issues/2512/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/2512/comments","events_url":"https://api.github.com/repos/moment/moment/issues/2512/events","html_url":"https://github.com/moment/moment/issues/2512","id":97452130,"number":2512,"title":"moment iso date parsing difference between 2.10.3 and 2.10.5","user":{"login":"timbell","id":161869,"avatar_url":"https://avatars.githubusercontent.com/u/161869?v=3","gravatar_id":"","url":"https://api.github.com/users/timbell","html_url":"https://github.com/timbell","followers_url":"https://api.github.com/users/timbell/followers","following_url":"https://api.github.com/users/timbell/following{/other_user}","gists_url":"https://api.github.com/users/timbell/gists{/gist_id}","starred_url":"https://api.github.com/users/timbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbell/subscriptions","organizations_url":"https://api.github.com/users/timbell/orgs","repos_url":"https://api.github.com/users/timbell/repos","events_url":"https://api.github.com/users/timbell/events{/privacy}","received_events_url":"https://api.github.com/users/timbell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-27T12:29:28Z","updated_at":"2015-07-27T13:37:22Z","closed_at":null,"body":"Hello,\r\n\r\nUsing 2.10.3 I was parsing likely ISO 8601 dates like this:\r\n\r\n    var m = moment(datestr, moment.ISO_8601);\r\n    if (m.isValid()) {\r\n        ...\r\n\r\nand things worked as expected when passing **invalid** dates. On updating to 2.10.5 this is no longer the case  - I get an exception in the moment call. The exception is thrown here:\r\n\r\n    function Moment(config) {\r\n        copyConfig(this, config);\r\n        this._d = new Date(config._d.getTime());\r\n        \r\nbecause config._d is undefined.\r\n\r\nShould I be doing things differently or is this a regression?\r\n\r\nJsfiddle showing the 2.10.3 behaviour here: http://jsfiddle.net/xnvofgrm/\r\n\r\nThanks,\r\n\r\nTim\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/moment/moment/issues/comments/125206683","html_url":"https://github.com/moment/moment/issues/2512#issuecomment-125206683","issue_url":"https://api.github.com/repos/moment/moment/issues/2512","id":125206683,"user":{"login":"vsumner","id":308886,"avatar_url":"https://avatars.githubusercontent.com/u/308886?v=3","gravatar_id":"","url":"https://api.github.com/users/vsumner","html_url":"https://github.com/vsumner","followers_url":"https://api.github.com/users/vsumner/followers","following_url":"https://api.github.com/users/vsumner/following{/other_user}","gists_url":"https://api.github.com/users/vsumner/gists{/gist_id}","starred_url":"https://api.github.com/users/vsumner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsumner/subscriptions","organizations_url":"https://api.github.com/users/vsumner/orgs","repos_url":"https://api.github.com/users/vsumner/repos","events_url":"https://api.github.com/users/vsumner/events{/privacy}","received_events_url":"https://api.github.com/users/vsumner/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T13:37:22Z","updated_at":"2015-07-27T13:37:22Z","body":"+1"}}