Adonis 5 with Mysql not accept Datetime ISO value without timezone #3517
Replies: 3 comments 1 reply
-
|
What happens when you perform the insert statement by running the SQL query directly (without using Lucid)? |
Beta Was this translation helpful? Give feedback.
-
|
I have the same error when using firstOrCreate dateAdded column type Date MySQL 5.7
Error message:
I set prepare and serialize methods on the model from Datetime |
Beta Was this translation helpful? Give feedback.
-
|
This problem is a real pain, because whoever wrote LUCID ORDM with AXION must have forgotten how to correctly transcribe the date to the MySQL/MariDB standard. This problem doesn't happen with PostgreSQL. I deeply regret not having my API in NestJS and using another ORM. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When using Adonis 5 with Mysql i get an error while tryng to save string Datetime from ISO format with timezone:
Without the timezone the error not occurr:
Showin the error:
Thanks for help.
Beta Was this translation helpful? Give feedback.
All reactions