mirror of
https://github.com/plankanban/planka.git
synced 2025-12-16 09:13:18 +03:00
feat: Parse dates as UTC without relying on TZ environment variable
Closes #1266
This commit is contained in:
@@ -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 = {
|
||||
/**
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user