diff --git a/apps/web-antd/src/views/dashboard/analytics/index.vue b/apps/web-antd/src/views/dashboard/analytics/index.vue index a0c9d5ab..71f79cce 100644 --- a/apps/web-antd/src/views/dashboard/analytics/index.vue +++ b/apps/web-antd/src/views/dashboard/analytics/index.vue @@ -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(