default timezone is not working for sequelize querys in postgres

You need to set the timezone on the dialectOptions property for reads, setting it on the top level options is for writes.

const sequelize = new Sequelize(
        host: process.env.DB_HOST,
        dialect: 'postgres',
        dialectOptions: { // for reading
          useUTC: false,
          timezone: '-03:00',
        timezone: '-03:00', // for writing

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top