Fix DB timezone not being applied
This commit is contained in:
parent
736b184646
commit
dff9ba15eb
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue