-
-
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
DataType.TIME doesn't insert into Postgres correctly #13276
Labels
stale
status: understood
For issues. Applied when the issue is understood / reproducible.
topic: dates & times
For issues and PRs. Things that involve dates and times.
type: bug
Comments
5 tasks
wbourne0
added
status: understood
For issues. Applied when the issue is understood / reproducible.
topic: dates & times
For issues and PRs. Things that involve dates and times.
type: bug
labels
May 30, 2021
5 tasks
jemshid123
pushed a commit
to jemshid123/sequelize
that referenced
this issue
Jun 1, 2021
When a date is provided as input for time field convert it to time string closes sequelize#13276
jemshid123
pushed a commit
to jemshid123/sequelize
that referenced
this issue
Jun 2, 2021
When a date is provided as input for time field convert it to time string closes sequelize#13276
jemshid123
pushed a commit
to jemshid123/sequelize
that referenced
this issue
Jun 4, 2021
When a date is provided as input for time field convert it to time string closes sequelize#13276
jemshid123
pushed a commit
to jemshid123/sequelize
that referenced
this issue
Jun 11, 2021
When a date is provided as input for time field convert it to time string closes sequelize#13276
jemshid123
pushed a commit
to jemshid123/sequelize
that referenced
this issue
Jun 12, 2021
When a date is provided as input for time field convert it to time string closes sequelize#13276
jemshid123
pushed a commit
to jemshid123/sequelize
that referenced
this issue
Jun 25, 2021
When a date is provided as input for time field convert it to time string closes sequelize#13276
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
jemshid123
added a commit
to jemshid123/sequelize
that referenced
this issue
Jan 15, 2022
When a date is provided as input for time field convert it to time string closes sequelize#13276
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
stale
status: understood
For issues. Applied when the issue is understood / reproducible.
topic: dates & times
For issues and PRs. Things that involve dates and times.
type: bug
Issue Description
What are you doing?
Upgrading to Sequelize 6 from 4.x.
We use DataType.TIME for TIMESTAMP postgres fields.
However when this is getting inserted into sql it is being inserted as a date:
invalid input syntax for type time: "2021-05-18T08:00:00.000+00:00"
Time syntax should be:
HH:MM:SS
What do you expect to happen?
DataType.TIME should insert fields in
HH:MM:SS
formatWhat is actually happening?
Trying to insert as full date strings.
Environment
Sequelize Versions:
"sequelize": "^6.6.2",
"sequelize-cli": "^6.2.0",
"sequelize-typescript": "^2.1.0",
Issue Template Checklist
How does this problem relate to dialects?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: