Time unification
This commit is contained in:
@@ -140,6 +140,12 @@ console.log('DB Connection Info:', {
|
||||
password: (dbConfig.password || dbConfig.connectionString) ? '****' : 'MISSING' // Only show if credentials exist
|
||||
});
|
||||
|
||||
// Pin the session timezone to business time (see docs/TIME.md) — window
|
||||
// anchors (CURRENT_DATE etc.) in the metrics SQL must mean Chicago dates.
|
||||
if (!dbConfig.options) {
|
||||
dbConfig.options = '-c TimeZone=America/Chicago';
|
||||
}
|
||||
|
||||
const pool = new Pool(dbConfig);
|
||||
|
||||
const getConnection = () => {
|
||||
|
||||
Reference in New Issue
Block a user