fix: use the local date for the event modal's default start and end (#27779)

This commit is contained in:
G30 2026-08-11 00:19:54 -04:00 committed by GitHub
parent 3dbb4078b3
commit 04c22f0c41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;