ensure mysql is storing UTC times

This commit is contained in:
Girish Ramakrishnan
2019-03-22 15:12:30 -07:00
parent ebaf0a08b5
commit 57c4d96467
4 changed files with 7 additions and 1 deletions

View File

@@ -36,7 +36,8 @@ function initialize(callback) {
port: config.database().port,
database: config.database().name,
multipleStatements: false,
ssl: false
ssl: false,
timezone: 'Z' // mysql follows the SYSTEM timezone. on Cloudron, this is UTC
});
gConnectionPool.on('connection', function (connection) {