fix: scheduleEventTrigger (#4114)

* fix: scheduleEventTrigger

* fix: delete pro-plugins
This commit is contained in:
hongboji 2024-04-21 19:35:30 +08:00 committed by GitHub
parent 5bcaa9d11f
commit c43a6e98d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]}`;