We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d83e124 commit f7437d8Copy full SHA for f7437d8
1 file changed
src/app/(dashboard)/insights/page.tsx
@@ -65,7 +65,6 @@ export default function InsightsPage() {
65
<div className="h-100 bg-slate-100 rounded-xl" />
66
67
</div>
68
- 400px]
69
70
);
71
}
@@ -120,8 +119,11 @@ export default function InsightsPage() {
120
119
!columnTitleLower.includes("hoàn thành") &&
121
task.deadline
122
) {
123
- const dueDate = new Date(task.deadline);
124
- dueDate.setHours(0, 0, 0, 0);
+ const [year, month, day] = String(task.deadline)
+ .slice(0, 10)
+ .split("-")
125
+ .map(Number);
126
+ const dueDate = new Date(year, month - 1, day);
127
if (dueDate < today) {
128
overdueTasks++;
129
0 commit comments