Hello,
I have a Postgres database with a timestamp field set with " WITHOUT TIME ZONE" where I store datetime in UTC.
If I query my table directly on the command line, I get the good date.
But I can’t get this value with ForestAdmin/Sequelize
The problem, it’s that it is not the same date at the end…
I’ve checked GitHub - abelosorio/sequelize-date-no-tz-postgres: Add support for DATE (timestamp without time zone) data-type for PostgreSQL in Sequelize , How to configure column without timezone in timestamp? · Issue #2572 · sequelize/sequelize · GitHub
without much success.
Another option for me would be to be able to run a query with Sequelize without the “serializer” step. Just raw data.
I’ve tried “raw”, “plain” but the datetime are still serialized and returned as javascript date objects…
I start to run out of options…
How can I get a datetime without timezone manipulation from a Postgres database?
Context
- Project name: myflightconnect
- Agent (forest package) name & version: forest-express-sequelize@9.2.9
- Database type: Postgres