From 61c1fb47b3b7fc81268273c2cd24d363d5fd5642 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 18 May 2023 17:13:30 +0800 Subject: [PATCH] fix(nocodb): incorrect meta now logic --- packages/nocodb/src/meta/meta.service.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/nocodb/src/meta/meta.service.ts b/packages/nocodb/src/meta/meta.service.ts index baaf7c33ad..3d7b09fe5c 100644 --- a/packages/nocodb/src/meta/meta.service.ts +++ b/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(