Change timezone on mysql connection
This commit is contained in:
parent
a56ef5a0f1
commit
f1bb45ee81
|
@ -45,7 +45,15 @@ function handleDisconnect() {
|
|||
throw err; // server variable configures this)
|
||||
}
|
||||
});
|
||||
connection.on('connection', conn => {
|
||||
conn.query("SET time_zone='+02:00';", error => {
|
||||
if(error){
|
||||
throw error
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
handleDisconnect(); //Start the auto-restarting connection
|
||||
|
||||
|
|
Loading…
Reference in New Issue