From 3925828d1e0d8b96e9cd7aad86247dbb0e1ff715 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 20 Dec 2023 18:29:03 +0100 Subject: [PATCH] Include current day in heatmap statistic --- .../heatmap-activity/heatmap-activity.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/statistics/taskgroup-activity/heatmap-activity/heatmap-activity.component.ts b/frontend/src/app/statistics/taskgroup-activity/heatmap-activity/heatmap-activity.component.ts index 9933dff..768ebba 100644 --- a/frontend/src/app/statistics/taskgroup-activity/heatmap-activity/heatmap-activity.component.ts +++ b/frontend/src/app/statistics/taskgroup-activity/heatmap-activity/heatmap-activity.component.ts @@ -55,7 +55,7 @@ export class HeatmapActivityComponent implements OnInit{ this.historyService.statisticsTaskgroupActivityTaskgroupIDStartingDateEndingDateIncludeSubTaskgroupsGet( this.selectedTaskgroupPath.rootTasktroup.taskgroupID, moment().subtract(6, "months").format("YYYY-MM-DD"), - moment().format("YYYY-MM-DD"), + moment().add(2, 'days').format("YYYY-MM-DD"), true ).subscribe({ next: resp => { @@ -106,7 +106,7 @@ export class HeatmapActivityComponent implements OnInit{ x: moment(currentDate).toDate(), y: 0 } - + console.log(currentDate) currentDate = currentDate.add(1, "days"); }