Time unification
This commit is contained in:
@@ -211,7 +211,12 @@ async function setupSshTunnel() {
|
||||
password: process.env.PROD_DB_PASSWORD,
|
||||
database: process.env.PROD_DB_NAME,
|
||||
port: process.env.PROD_DB_PORT || 3306,
|
||||
timezone: 'Z'
|
||||
// DATETIME columns in this DB store Central wall-clock literals. Return
|
||||
// them as literal strings so consumers parse them explicitly with
|
||||
// parseMySql() (zone America/Chicago) from shared/business-time — never
|
||||
// let the driver guess a zone (the old `timezone: 'Z'` mangled every
|
||||
// value by labeling Central wall-clock as UTC).
|
||||
dateStrings: true
|
||||
};
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user