From 041f146d7c97ea288d1307024e95474ee499d687 Mon Sep 17 00:00:00 2001 From: YANG QIA <2013xile@gmail.com> Date: Mon, 19 Feb 2024 20:14:45 +0800 Subject: [PATCH] fix(bi): parse issue of date variables (#3520) --- .../plugin-data-visualization/src/client/filter/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts index 18515af22..2e3f02e11 100644 --- a/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts +++ b/packages/plugins/@nocobase/plugin-data-visualization/src/client/filter/utils.ts @@ -154,7 +154,7 @@ export const transformValue = (value: any, props: any) => { start = start.startOf('day'); end = end.endOf('day'); } - return [moment2str(start, props), moment2str(end, props)]; + return [start.toISOString(), end.toISOString()]; } return value; };