-
-
Notifications
You must be signed in to change notification settings - Fork 788
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
[BUG]: Dates are always dates #971
Comments
If using pg / node-postgres, this a feature you need to disable. https://node-postgres.com/features/types#date--timestamp--timestamptz I've done it like this when working with knex.
Issue noted on knex: knex/knex#3071 (comment) |
Should be fixed in I plan to release it in version |
Fixed in Please check release notes for more info |
I'm still facing this issue (partially) in |
What version of
drizzle-orm
are you using?0.27.2
What version of
drizzle-kit
are you using?0.19.12
Describe the Bug
When using the
date()
column type in postgres, (import { date } from 'drizzle-orm/pg-core';
), the returned "date" property is always a Date object, regardless of the mode. On top of that, the TypeScript types describe the intended behavior, resulting in all sorts of bugs.Expected behavior
The date column should respect the mode that is passed.
Environment & setup
Postgres, using the "date" column
The text was updated successfully, but these errors were encountered: