TIMESTAMPTZ is returned as string instead of Date object
It seems that drizzle upon initialization (re-)sets
pg-types
pg-types
handling of dates. Usually
pg-types
pg-types
and thus
node-postgres
node-postgres
converts
TIMESTAMP
TIMESTAMP
,
TIMESTAMPTZ
TIMESTAMPTZ
and other related data base types automatically to a JS date object.
I tried Drizzle with the node-postgres driver and it didn't seem to work, dates were simply strings. I figured that Drizzle resets the default type convertes upon initialization (see picture).
I was wondering why that is. And is that simply a me problem or did anyone also find