express icon indicating copy to clipboard operation
express copied to clipboard

PostgreSQL Date Issue

Open gahula opened this issue 12 years ago • 1 comments

Dates are being returned as timestamp with timezone E.G My database has 1985-09-13 (type: Date) but when queried it returns Fri Sep 13 1985 00:00:00 GMT+0000 (UTC). Prior to this, i had, process.env.TZ = 'America/Barbados'; which produced Thu Sep 12 1985 20:00:00 GMT-0400 (AST). Based on this Express is capable of altering the dates it seems.

gahula avatar May 31 '14 04:05 gahula

This maybe a genuine issue... in my database there is only a date - 1985-09-13. after i query it, Fri Sep 13 1985 00:00:00 GMT+0000 (UTC) is shown in the results. This occurred after my upgrade from 3 to 4.

gahula avatar May 31 '14 04:05 gahula