{"action":"closed","issue":{"url":"https://api.github.com/repos/moment/moment/issues/3335","repository_url":"https://api.github.com/repos/moment/moment","labels_url":"https://api.github.com/repos/moment/moment/issues/3335/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/3335/comments","events_url":"https://api.github.com/repos/moment/moment/issues/3335/events","html_url":"https://github.com/moment/moment/issues/3335","id":168260870,"number":3335,"title":"moment().format() creates invalid date","user":{"login":"saravanaj","id":1573565,"avatar_url":"https://avatars.githubusercontent.com/u/1573565?v=3","gravatar_id":"","url":"https://api.github.com/users/saravanaj","html_url":"https://github.com/saravanaj","followers_url":"https://api.github.com/users/saravanaj/followers","following_url":"https://api.github.com/users/saravanaj/following{/other_user}","gists_url":"https://api.github.com/users/saravanaj/gists{/gist_id}","starred_url":"https://api.github.com/users/saravanaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saravanaj/subscriptions","organizations_url":"https://api.github.com/users/saravanaj/orgs","repos_url":"https://api.github.com/users/saravanaj/repos","events_url":"https://api.github.com/users/saravanaj/events{/privacy}","received_events_url":"https://api.github.com/users/saravanaj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T06:42:28Z","updated_at":"2016-07-29T08:55:57Z","closed_at":"2016-07-29T08:55:57Z","body":"`moment().format()` creates a date that is not valid according to `moment().isValid()`\r\n\r\nHere is the example:\r\n\r\n    > moment.version\r\n    \"2.14.1\"\r\n    > moment.locale()\r\n    \"fr\"\r\n    > moment().format(\"ll\")\r\n    \"29 juill. 2016\"\r\n    > moment(\"29 juill. 2016\", \"ll\", true).isValid()\r\n    false\r\n\r\nHowever if I remove the period in the month it works:\r\n\r\n    > moment(\"29 juill 2016\", \"ll\", true).isValid()\r\n    true\r\n\r\nOr if I disable strict parsing (remove the 3rd parameter) it works:\r\n\r\n    > moment(\"29 juill. 2016\", \"ll\").isValid()\r\n    true\r\n\r\nWhy is this? Why doesn't `moment().format(\"ll\")` create a date that is valid with strict parsing?"}}
{"actor":{"display_login":"saravanaj"}}