fix: Date picker bug
All checks were successful
Deploy to Staging / Build Images (push) Successful in 1m21s
Deploy to Staging / Deploy to Staging (push) Successful in 43s
Deploy to Staging / Verify Staging (push) Successful in 4s
Deploy to Staging / Notify Staging Ready (push) Successful in 4s
Deploy to Staging / Notify Staging Failure (push) Has been skipped

This commit is contained in:
Eric Gullickson
2026-03-23 20:03:49 -05:00
parent c05e33e230
commit f0fc427ccd
3 changed files with 8 additions and 3 deletions

View File

@@ -2,10 +2,15 @@
* @ai-summary PostgreSQL connection pool configuration
* @ai-context Shared pool for all feature repositories
*/
import { Pool } from 'pg';
import { Pool, types } from 'pg';
import { logger } from '../logging/logger';
import { appConfig } from './config-loader';
// Override DATE type parser to return plain YYYY-MM-DD strings instead of Date objects.
// Default pg behavior creates Date objects at local midnight, which shift dates when
// serialized to JSON via toISOString() (UTC conversion) for clients in other timezones.
types.setTypeParser(1082, (val: string) => val);
export const pool = new Pool({
connectionString: appConfig.getDatabaseUrl(),
max: 10,