Skip to content

Commit b3b9c49

Browse files
authored
Adjust minEndLocal calculation to add 9 hours
1 parent 20e3554 commit b3b9c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/EventCreateForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const EventCreateForm = ({ onCreated, onCancel }: Props) => {
4545
if (!startAt) return '';
4646
const s = new Date(startAt);
4747
if (Number.isNaN(s.getTime())) return '';
48-
return new Date(s.getTime() + 24 * 60 * 60 * 1000)
48+
return new Date(s.getTime() + 24 * 60 * 60 * 1000 + 9 * 60 * 60 * 1000)
4949
.toISOString()
5050
.slice(0, 16);
5151
}, [startAt]);

0 commit comments

Comments
 (0)