Time unification
This commit is contained in:
@@ -15,5 +15,8 @@ export function createPool(envPrefix = 'DB', overrides = {}) {
|
||||
max: overrides.max ?? 20,
|
||||
idleTimeoutMillis: overrides.idleTimeoutMillis ?? 30_000,
|
||||
connectionTimeoutMillis: overrides.connectionTimeoutMillis ?? 5_000,
|
||||
// Pin the session timezone to business time (see docs/TIME.md) so date
|
||||
// bucketing can't silently revert if the database default changes.
|
||||
options: overrides.options ?? '-c TimeZone=America/Chicago',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user