Change timezone on mysql connection

This commit is contained in:
Felix Albrigtsen 2022-04-06 10:17:29 +02:00
parent a56ef5a0f1
commit f1bb45ee81
1 changed files with 8 additions and 0 deletions

View File

@ -45,7 +45,15 @@ function handleDisconnect() {
throw err; // server variable configures this) 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 handleDisconnect(); //Start the auto-restarting connection