feat: Parse dates as UTC without relying on TZ environment variable

Closes #1266
This commit is contained in:
Maksim Eltyshev
2025-07-25 11:23:20 +02:00
parent 4effc0ce23
commit e2a9b30f46
4 changed files with 51 additions and 16 deletions

View File

@@ -13,6 +13,10 @@
* https://sailsjs.com/config/datastores
*/
const pg = require('pg');
pg.types.setTypeParser(pg.types.builtins.TIMESTAMP, (value) => new Date(`${value}Z`));
module.exports.datastores = {
/**
*