fix Time call

This commit is contained in:
Timi
2026-10-21 01:02:38 +08:00
parent 77f061ef96
commit 0a283bf8e9
27 changed files with 59 additions and 59 deletions
+4 -4
View File
@@ -222,8 +222,8 @@ function buildEventRecordListQuery(monthCursor: Date, eventIdList: string[], cus
customerId: customer.id || "",
customerName: customer.name || "",
dateType: "custom",
beginAt: `${Time.formatDate(monthStart)} 00:00`,
endAt: `${Time.formatDate(monthEnd)} 23:59`,
beginAt: `${Time.toDate(monthStart)} 00:00`,
endAt: `${Time.toDate(monthEnd)} 23:59`,
transitionDepth: String(getCurrentRouteDepth() + 1),
eventIds: eventIdList.join(",")
};
@@ -254,7 +254,7 @@ function buildMonthDateTextList(date: Date): string[] {
const nextMonthStart = addMonths(monthStart, 1);
const list: string[] = [];
for (let item = monthStart; item < nextMonthStart; item = addDays(item, 1)) {
list.push(Time.formatDate(item));
list.push(Time.toDate(item));
}
return list;
}
@@ -262,7 +262,7 @@ function buildMonthDateTextList(date: Date): string[] {
function buildDateTextList(begin: Date, end: Date): string[] {
const list: string[] = [];
for (let item = getDateStart(begin); item <= end; item = addDays(item, 1)) {
list.push(Time.formatDate(item));
list.push(Time.toDate(item));
}
return list;
}