修复小细节

This commit is contained in:
sijinhui
2023-12-28 13:22:09 +08:00
parent 1e7d20580d
commit b0e56e17c7
4 changed files with 23 additions and 15 deletions

View File

@@ -65,14 +65,16 @@ export default async function UsageByModel() {
0,
0,
);
const endOfTheDayInTimeZone = new Date(
today.getFullYear(),
today.getMonth(),
today.getDate(),
23,
59,
59,
); // 当天的结束时间
// const endOfTheDayInTimeZone = new Date(
// today.getFullYear(),
// today.getMonth(),
// today.getDate(),
// 23,
// 59,
// 59,
// ); // 当天的结束时间
const endOfTheDayInTimeZone = addHours(startOfTheDayInTimeZone, +24); // 当天的结束时间
// const startDate = addHours(startOfTheDayInTimeZone, -8);
// const endDate = addHours(endOfTheDayInTimeZone, -8);
console.log("===", today, startOfTheDayInTimeZone, endOfTheDayInTimeZone);