fix Time call
This commit is contained in:
@@ -342,12 +342,12 @@ async function handleDateFilterChange(value: DropdownValue): Promise<void> {
|
||||
}
|
||||
|
||||
function openStartDate(): void {
|
||||
startDraft.value = dateRange.value[0] || `${Time.formatDate(new Date())} 00:00`;
|
||||
startDraft.value = dateRange.value[0] || `${Time.toDate(new Date())} 00:00`;
|
||||
startVisible.value = true;
|
||||
}
|
||||
|
||||
function openEndDate(): void {
|
||||
endDraft.value = dateRange.value[1] || `${Time.formatDate(new Date())} 23:59`;
|
||||
endDraft.value = dateRange.value[1] || `${Time.toDate(new Date())} 23:59`;
|
||||
endVisible.value = true;
|
||||
}
|
||||
|
||||
@@ -374,7 +374,7 @@ function buildPresetDateRange(type: DateFilterType): [string, string] {
|
||||
end.setDate(end.getDate() + 6);
|
||||
}
|
||||
end.setHours(23, 59, 0, 0);
|
||||
return type === "all" ? ["", ""] : [Time.formatDateTime(begin), Time.formatDateTime(end)];
|
||||
return type === "all" ? ["", ""] : [Time.toDateTime(begin), Time.toDateTime(end)];
|
||||
}
|
||||
|
||||
async function handleCustomerSelected(id: string): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user