mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
fix: use the local date for the event modal's default start and end (#27779)
This commit is contained in:
parent
3dbb4078b3
commit
04c22f0c41
1 changed files with 2 additions and 2 deletions
|
|
@ -100,10 +100,10 @@
|
|||
endTime = nsToTimeStr(endNs);
|
||||
} else {
|
||||
const now = new Date();
|
||||
startDate = now.toISOString().slice(0, 10);
|
||||
startDate = nsToDateStr(now.getTime() * NS);
|
||||
startTime = now.toTimeString().slice(0, 5);
|
||||
const later = new Date(now.getTime() + 60 * 60 * 1000);
|
||||
endDate = later.toISOString().slice(0, 10);
|
||||
endDate = nsToDateStr(later.getTime() * NS);
|
||||
endTime = later.toTimeString().slice(0, 5);
|
||||
}
|
||||
allDay = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue