Deprecation warning: moment construction falls back to js Date
See original GitHub issueThe same issue was opened and closed last year in #4954.
But I’m getting it today with the latest stable version of Sequelize, 3.24.1
.
Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: [object Object]
Error
at Function.createFromInputFallback (/code/foo/node_modules/moment/moment.js:285:105)
at configFromString (/code/foo/node_modules/moment/moment.js:2015:32)
at configFromInput (/code/foo/node_modules/moment/moment.js:2375:13)
at prepareConfig (/code/foo/node_modules/moment/moment.js:2358:13)
at createFromConfig (/code/foo/node_modules/moment/moment.js:2325:44)
at createLocalOrUTC (/code/foo/node_modules/moment/moment.js:2412:16)
at local__createLocal (/code/foo/node_modules/moment/moment.js:2416:16)
at utils_hooks__hooks (/code/foo/node_modules/moment/moment.js:16:29)
at DATE.$applyTimezone (/code/foo/node_modules/sequelize/lib/data-types.js:473:14)
at DATE.$stringify (/code/foo/node_modules/sequelize/lib/data-types.js:483:15)
at ABSTRACT.stringify (/code/foo/node_modules/sequelize/lib/data-types.js:77:17)
at Object.QueryGenerator.escape (/code/foo/node_modules/sequelize/lib/dialects/abstract/query-generator.js:966:32)
at Object.QueryGenerator.whereItemQuery (/code/foo/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2272:22)
at /code/foo/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2167:28
at /code/foo/node_modules/sequelize/node_modules/lodash/lodash.js:4389:15
at baseForOwn (/code/foo/node_modules/sequelize/node_modules/lodash/lodash.js:2652:24)
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
“Deprecation warning: moment construction falls back to js ...
moment construction falls back to js Date (), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged...
Read more >Suddenly getting 'Deprecation warning: moment construction ...
Deprecation warning : moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release.
Read more >Moment.js - Deprecation warning - Coding Help - Glitch Support
Deprecation warning : value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ...
Read more >Deprecation warning: moment construction falls back to js Date.
I was looking on the site for some pointers, but can;t seem to find any reference to this library any more. ->getFormatter( 'Format::datetime', ......
Read more >Deprecation warning: moment construction falls back to js ...
The last option is a built-in fallback that Moment supports for now, with the deprecated console warning. They say they won't support this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m also experiencing this due to my use of
Sequelize.DATE
in a model. (Sequelizev3.24.1
)I’ll look into it and create a PR when I figure out what’s wrong.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂