Fix group by month/year not working for YTD (#1598)

* Set time to 00:00:00 when getting current timestamp

* Update changelog
This commit is contained in:
Yash Solanki
2023-01-14 18:00:51 +05:30
committed by GitHub
parent d147c2313f
commit bb99141e9c
3 changed files with 24 additions and 5 deletions

View File

@@ -196,7 +196,10 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy {
this.getTooltipPluginConfiguration()
);
this.chart.options.scales.x.min = this.daysInMarket
? subDays(new Date(), this.daysInMarket).toISOString()
? subDays(
new Date().setHours(0, 0, 0, 0),
this.daysInMarket
).toISOString()
: undefined;
if (