[BUG]: Date with a .toISOString()
causes an error in the typeHint
with PostgreSQL
#2364
Labels
bug
Something isn't working
What version of
drizzle-orm
are you using?0.30.10
What version of
drizzle-kit
are you using?0.21.4
Describe the Bug
I'm trying to update a workout with the Date objects startTime and endTime. When I just pass in the dates as they are, they are parsed as a timestamp without the timezone (which is not what my schema needs). When I pass them in as
toISOString()
as below, it throws a 500 error and parses it as a UUID.Expected behavior
I'd expect either mode for the timestamp to work correctly, as in, the timezone should be part of the value portion of the update query on its own, and that it shouldn't parse it as a UUID when it's got the timezone at the correct place.
Environment & setup
Locally with my local data api layer.
The text was updated successfully, but these errors were encountered: