We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7b04c2 commit e7ab340Copy full SHA for e7ab340
2 files changed
components/plans/TaskItem.tsx
@@ -28,7 +28,13 @@ export default function TaskItem({
28
const formatDate = (d: string | Date | undefined) => {
29
if (!d) return '';
30
if (typeof d === 'string') return d;
31
- return d.toISOString().split('T')[0]; // YYYY-MM-DD 형식
+
32
+ // 로컬 시간 메서드 사용 (시차 방지)
33
+ const year = d.getFullYear();
34
+ const month = String(d.getMonth() + 1).padStart(2, '0');
35
+ const day = String(d.getDate()).padStart(2, '0');
36
37
+ return `${year}-${month}-${day}`;
38
};
39
40
// 1-2. 마우스 클릭 감지
services/plans/planManageService.service.ts
@@ -28,7 +28,7 @@ export interface PlanItem {
planId: string;
text: string;
isChecked: boolean;
- deadline: Date;
+ deadline?: Date;
createdAt: Date;
}
0 commit comments