Replies: 3 comments 1 reply
-
looks like a server error so solution might be outside of the driver Can you show your table schema and an example code that inserts the date value? |
Beta Was this translation helpful? Give feedback.
-
Here is the schema corresponding to the pubDate:
example code that inserts the data: Thank you. |
Beta Was this translation helpful? Give feedback.
-
I just noticed that |
Beta Was this translation helpful? Give feedback.
-
I was using mysql2 version 2.3.3 and it saved the date as it was. Today I updated the package to the latest version and this error pops up:
Incorrect datetime value: '2023-02-26T18:09:56.000Z' for column 'pubDate' at row 1 (errno 1292) (sqlstate 22007)
Also note that I moved the hosting from RDS to planetscale. Might I have configured the MySQL differently in the latest server?
Please help. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions