Browse Source

feat(nocodb): set type parser to override timestampz

pull/5642/head
Wing-Kam Wong 2 years ago
parent
commit
20cf34e6f7
  1. 4
      packages/nocodb/src/db/CustomKnex.ts

4
packages/nocodb/src/db/CustomKnex.ts

@ -15,6 +15,10 @@ types.setTypeParser(1082, (val) => val);
types.setTypeParser(1114, (val) => {
return dayjs(val).format('YYYY-MM-DD HH:mm:ss');
});
// override timestampz
types.setTypeParser(1184, (val) => {
return dayjs(val).format('YYYY-MM-DD HH:mm:ssZ');
});
const opMappingGen = {
eq: '=',

Loading…
Cancel
Save