-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecation warning: moment construction falls back to js Date #6483
Comments
What are you doing to make the issue appear? |
It's very hard to know, because the stack trace doesn't go back to my own code. All I know is it appears a lot in my logs. But it's clear it's coming from this line in Sequelize, which is apparently relying on deprecated behaviour in Moment.js. As far as I can tell, the Background is here. |
It can be fixed by providing the format of the date string. I don't know if that is the same across all database dialects and versions... |
I also have the same problem. |
I'm also experiencing this due to my use of I'll look into it and create a PR when I figure out what's wrong. |
@callumlocke After looking into this, this warning (documented here) basically states that you cannot pass just any string resembling a date into My issue was caused due a model that had a |
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 🙂 |
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
.The text was updated successfully, but these errors were encountered: