Skip to content

Conversation

dgraham
Copy link
Member

@dgraham dgraham commented Oct 3, 2022

Including the Z timezone works in select statements but throws an "incorrect datetime value" error during insert. Strip the timezone from the string before using it as a parameter replacement value.

Including the `Z` timezone works in select statements but throws an
"incorrect datetime value" error during insert. Strip the timezone
from the string before using it as a parameter replacement value.
@dgraham dgraham requested a review from iheanyi October 3, 2022 15:27
@dgraham dgraham enabled auto-merge October 3, 2022 15:27
@dgraham dgraham merged commit ba3aa53 into main Oct 3, 2022
@dgraham dgraham deleted the fix-timezone branch October 3, 2022 15:28
@steven-tey
Copy link

Ran into this bug today – had to manually do new Date().toISOString().replace("Z", "") in my code

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

Successfully merging this pull request may close these issues.

2 participants