3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix DB timezone not being applied

This commit is contained in:
Dragory 2018-07-09 03:12:49 +03:00
parent 736b184646
commit dff9ba15eb

View file

@ -7,7 +7,13 @@ module.exports = {
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
db: process.env.DB_DATABASE,
timezone: 'UTC',
charset: 'utf8mb4'
},
pool: {
afterCreate(connection, callback) {
connection.query("SET time_zone = '+0:00';", err => {
callback(err, connection);
});
}
}
};