]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Update deprecation message for non ISO dates to be more explicit
authorCorasWorksSolutions <david.smiley@corascloud.com>
Mon, 22 Aug 2016 16:09:01 +0000 (12:09 -0400)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 3 Sep 2016 06:32:38 +0000 (23:32 -0700)
src/lib/create/from-string.js

index f59fe581e3d14ebed2e856e1f40848b7179aef7b..0c86761a3539863fa8ba60d0b522819dae118a78 100644 (file)
@@ -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' : ''));