You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnewDate(this.withTimezone ? value : value+'+0000');
it resulting new Date("${Date}+000") which would become something like new Date("Fri Feb 21 2025 01:52:26 GMT+0000 (Coordinated Universal Time)+000"), it would still able to be parsed into Date but the precision will lost.
I have to make the following helper function to ensure date is retrieved correctly
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.39.3
What version of
drizzle-kit
are you using?0.30.4
Other packages
[email protected]
Describe the Bug
bun:sql
returntimestamp
asDate
natively, so the following line create problemdrizzle-orm/drizzle-orm/src/pg-core/columns/timestamp.ts
Line 62 in e5c63db
it resulting
new Date("${Date}+000")
which would become something likenew Date("Fri Feb 21 2025 01:52:26 GMT+0000 (Coordinated Universal Time)+000")
, it would still able to be parsed intoDate
but the precision will lost.I have to make the following helper function to ensure date is retrieved correctly
The text was updated successfully, but these errors were encountered: