My issue revolves around the birthdate field in one of my tables, which has a Data Type of Date. However, when attempting to export the data through an Express app, the date is transformed into a day earlier than it should be. For instance, a birthdate of 6/20/1978 becomes 6/19/1978 upon export.
I observed that even though the field only contains dates, something (possibly Sequelize) adds timestamps to them. If I refrain from formatting the date, it appears correctly but isn't human-readable for our exports.
The application functions flawlessly on my development notebook, but issues arise when deployed to QA as incorrect dates are returned.
Interestingly, when accessing PG3Admin on my notebook (in the Pacific timezone) to query data from the QA/Production server (located in the Hawaiian timezone), the data appears accurate.
My setup involves Sequelize v3.4.1 connected to a Postgres 9.3 database. Additionally, in my Sequelize config file, I've specified the "timezone": "-10:00" option.