When I am trying to set the timezone with mysql2 getting the bellow message. With MySQL working fine.
But I have to use mysql2 only
var mysql2 = require('mysql2');
var con = mysql2.createPool({
connectionLimit : 10,
host: process.env.DATABASE_HOST,
user: process.env.DATABASE_USER,
password: process.env.DATABASE_PASSWORD,
database : process.env.DATABASE_NAME,
timezone : 'IST'
})
Problem
Ignoring invalid timezone passed to Connection: IST. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you give an invalid configuration option to a Connection