mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:06:31 +00:00
fix: scheduleEventTrigger (#4114)
* fix: scheduleEventTrigger * fix: delete pro-plugins
This commit is contained in:
parent
5bcaa9d11f
commit
c43a6e98d5
@ -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]}`;
|
||||
|
Loading…
Reference in New Issue
Block a user