Browse Source

fix(nocodb): incorrect meta now logic

pull/5505/head
Wing-Kam Wong 2 years ago
parent
commit
61c1fb47b3
  1. 7
      packages/nocodb/src/meta/meta.service.ts

7
packages/nocodb/src/meta/meta.service.ts

@ -1043,10 +1043,9 @@ export class MetaService {
}
private now(): any {
if (this.isMySQL()) {
return dayjs().format('YYYY-MM-DD HH:mm:ss');
}
return dayjs().utc().format('YYYY-MM-DD HH:mm:ssZ');
return dayjs()
.utc()
.format(this.isMySQL() ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ');
}
public async audit(

Loading…
Cancel
Save