fix deprecation comment in momentjs
This commit is contained in:
parent
e2df79ee9e
commit
4eeae880b6
|
@ -1171,10 +1171,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
utils_hooks__hooks.createFromInputFallback = deprecate(
|
utils_hooks__hooks.createFromInputFallback = deprecate(
|
||||||
'moment construction falls back to js Date. This is ' +
|
'moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.',
|
||||||
'discouraged and will be removed in upcoming major ' +
|
|
||||||
'release. Please refer to ' +
|
|
||||||
'https://github.com/moment/moment/issues/1407 for more info.',
|
|
||||||
function (config) {
|
function (config) {
|
||||||
config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
|
config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue