This commit is contained in:
FLL
2025-09-09 17:51:47 +08:00
18 changed files with 812 additions and 77 deletions

View File

@@ -123,8 +123,7 @@ async function getCarCount() {
endDate.setHours(23, 59, 59, 999);
// 转换为正确的 ISO 格式,考虑时区偏移
const toLocalISOString = (date: Date) => {
const timezoneOffset = date.getTimezoneOffset() * 60000; // 转换为毫秒
const localTime = new Date(date.getTime() - timezoneOffset);
const localTime = new Date(date.getTime());
return localTime.toISOString().slice(0, -1) + 'Z';
};
const response = await fetch(