Skip to content

Commit f26d933

Browse files
committed
fix: 내일 일정이 보이지 않는 버그 해결
1 parent 1d3ff89 commit f26d933

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/useUpcomingPlanItems.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const startOfTomorrowKST = () => {
1414
const d = kst.getUTCDate();
1515

1616
// 내일 00:00 KST => UTC로 다시 변환(= -9h)
17-
const tomorrowKSTMidnightUTC = new Date(Date.UTC(y, m, d + 2, 0, 0, 0));
17+
const tomorrowKSTMidnightUTC = new Date(Date.UTC(y, m, d + 1, 0, 0, 0));
1818
const backToLocal = new Date(
1919
tomorrowKSTMidnightUTC.getTime() - 9 * 60 * 60 * 1000
2020
);

0 commit comments

Comments
 (0)