question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecation warning: moment construction falls back to js Date

See original GitHub issue

The 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:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickocoffeyocommented, Sep 3, 2016

I’m also experiencing this due to my use of Sequelize.DATE in a model. (Sequelize v3.24.1)

I’ll look into it and create a PR when I figure out what’s wrong.

0reactions
stale[bot]commented, Jun 29, 2017

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 🙂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found