Browse Source

feat: set utc timezone at connection

pull/5601/head
Wing-Kam Wong 2 years ago
parent
commit
e46510a235
  1. 7
      packages/nocodb-nest/src/utils/NcConfigFactory.ts

7
packages/nocodb-nest/src/utils/NcConfigFactory.ts

@ -308,8 +308,13 @@ export default class NcConfigFactory {
...connection,
...this.mysqlConnectionTypeCastConfig,
};
} else {
// for postgres - see `setTypeParser` in `CustomKnex.ts`
connection = {
...connection,
timezone: 'UTC',
};
}
// for postgres - see `setTypeParser` in `CustomKnex.ts`
return connection;
}

Loading…
Cancel
Save