node-postgres
2021-11-11T20:29:43.862Z

Bug in node-postgres with a stupid date and timezone related behaviour. Details at https://github.com/brianc/node-postgres/issues/818

Fix with :

const DATATYPE_DATE = 1082
pg.types.setTypeParser(DATATYPE_DATE, (val) => val)
const DATATYPE_TIMESTAMP = 1114
pg.types.setTypeParser(DATATYPE_TIMESTAMP,  (val) => val)