From c43a6e98d58510436d2ad65153e524f1032102f3 Mon Sep 17 00:00:00 2001 From: hongboji <116709317+hongboji@users.noreply.github.com> Date: Sun, 21 Apr 2024 19:35:30 +0800 Subject: [PATCH] fix: scheduleEventTrigger (#4114) * fix: scheduleEventTrigger * fix: delete pro-plugins --- .../client/__e2e__/ScheduleEventTrigger/configuration.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts index 6bd1a56578..5da945bf48 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts @@ -346,6 +346,9 @@ test.describe('Configuration page copy to new version', () => { const timeWithoutTimeZonea = now.toLocaleString('en-US', { timeZone: timeZone, hour12: false }); // 将 MM/DD/YYYY, HH:mm:ss 格式的字符串转换为 YYYY-MM-DD HH:mm:ss 格式 const parts = timeWithoutTimeZonea.split(/[\s,/:]+/); + if (parts[3] === '24') { + parts[3] = '00'; + } const formattedTimeWithTimeZone = `${parts[2]}-${parts[0].padStart(2, '0')}-${parts[1].padStart(2, '0')} ${ parts[3] }:${parts[4]}:${parts[5]}`;