fix Time call
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user