I have added timezone in index.js when initializing mysql connection
var db_config = {
host : 'localhost',
user : 'xxx',
password : '',
database : 'xxx',
timezone: 'utc' //<-here this line was missing
};
More Related Contents:
- How can i write in NodeJS with MongoDB the following MySQL Select?
- MySQL 8.0 – Client does not support authentication protocol requested by server; consider upgrading MySQL client
- MySQL with Node.js
- node-mysql multiple statements in one query
- How do I get the current time zone of MySQL?
- How do I do a bulk insert in mySQL using node.js
- How to store a datetime in MySQL with timezone info
- MySQL timezone change?
- Node.js can’t authenticate to MySQL 8.0
- node.js mysql error: ECONNREFUSED
- MySQL CONVERT_TZ()
- How to convert time to the time zone of the iPhone device?
- How to auto generate migrations with Sequelize CLI from Sequelize models?
- How to access a RowDataPacket object
- How to pass parameters to mysql query callback in nodejs
- Making changes to multiple records based on change of single record with SQL
- node.js + mysql connection pooling
- connect ECONNREFUSED – node js , sql
- Can MySQL convert a stored UTC time to local timezone?
- How to make join queries using Sequelize on Node.js
- MySQL Time Zones
- NodeJS MySQL Dump
- Node.js connect to MySQL Docker container ECONNREFUSED
- Use promise to process MySQL return value in node.js
- Error in MySQL library for Node.js
- Which ORM should I use for Node.js and MySQL? [closed]
- find number of rows in returned mysql result (nodejs)
- MySQL giving “read ECONNRESET” error after idle time on node.js server
- Counting associated entries with Sequelize
- INSERT INTO fails with node-mysql