sequelize mysql 时区问题

var sequelize = new Sequelize(connStr, {
    dialectOptions: {
        useUTC: false //for reading from database
    },
    timezone: '+08:00' //for writing to database
});

你可能感兴趣的:(sequelize mysql 时区问题)