Skip to content

Commit ff7f1b3

Browse files
authored
Merge pull request #60 from DeveloperBlog-Devflow/feature/heatmap-section
fix: 오늘의 할 일 가져오기 날짜 로직 수정
2 parents d1bebe0 + 49a9a43 commit ff7f1b3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

services/plans/planManageService.service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ export const fetchTodayPlanItems = async (uid: string): Promise<PlanItem[]> => {
244244

245245
// KST 기준 오늘 00:00 ~ 내일 00:00
246246
const now = new Date();
247-
const kst = new Date(now.getTime() + 9 * 60 * 60 * 1000);
248-
const startKST = new Date(kst.getFullYear(), kst.getMonth(), kst.getDate());
249-
const start = new Date(startKST.getTime() - 9 * 60 * 60 * 1000);
247+
const start = new Date(now.getFullYear(), now.getMonth(), now.getDate()); // 오늘 00:00 (로컬)
250248
const end = new Date(start.getTime() + 24 * 60 * 60 * 1000);
251249

252250
const q = query(

0 commit comments

Comments
 (0)