express
express copied to clipboard
PostgreSQL Date Issue
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.
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.