Skip to content
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

Error in insert data type date or timestamp #2170

Closed
WafaBoussada opened this issue Dec 13, 2021 · 2 comments
Closed

Error in insert data type date or timestamp #2170

WafaBoussada opened this issue Dec 13, 2021 · 2 comments

Comments

@WafaBoussada
Copy link

Hello
when updating objection to 3.0.0 and knex to 0.95.14, i got this error : type must be JSONType or JSONType[]: date.
and there are warnings in node modules objection

@WafaBoussada WafaBoussada changed the title update objection to 3.0.0 Error in insert data type date or timestamp Dec 14, 2021
@koskimas
Copy link
Collaborator

#2147
#2146
#2142

@LordA98
Copy link

LordA98 commented Oct 12, 2022

For anyone wondering, if you go down the route of adding the ajv-formats package and creating a property with type: string and format: date-time - the easiest way to get a value that matches this format is new Date().toISOString().

Wasn't obvious to me so thought I'd add a note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants