From: CorasWorksSolutions Date: Mon, 22 Aug 2016 16:09:01 +0000 (-0400) Subject: Update deprecation message for non ISO dates to be more explicit X-Git-Tag: 2.15.0~12^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de7bfe03207bac75e344f8db9878b8c21836b02b;p=thirdparty%2Fmoment.git Update deprecation message for non ISO dates to be more explicit --- diff --git a/src/lib/create/from-string.js b/src/lib/create/from-string.js index f59fe581e..0c86761a3 100644 --- a/src/lib/create/from-string.js +++ b/src/lib/create/from-string.js @@ -110,9 +110,9 @@ export function configFromString(config) { } hooks.createFromInputFallback = deprecate( - 'moment construction falls back to js Date. This is ' + - 'discouraged and will be removed in upcoming major ' + - 'release. Please refer to ' + + 'value provided is not in a recognized ISO format. moment construction falls back to js Date(), ' + + 'which is not reliable across all browsers and versions. Non ISO date formats are ' + + 'discouraged and will be removed in an upcoming major release. Please refer to ' + 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) { config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));