Skip to content

Commit 9a09dc8

Browse files
committed
GUI: dashboard chart, fix last day of the month not being shown.
1 parent 9c64f9b commit 9a09dc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qt/pivx/dashboardwidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,10 @@ void DashboardWidget::updateStakeFilter()
492492
if (yearFilter != 0) {
493493
if (filterByMonth) {
494494
QDate monthFirst = QDate(yearFilter, monthFilter, 1);
495+
QDate monthLast = QDate(yearFilter, monthFilter, monthFirst.daysInMonth());
495496
stakesFilter->setDateRange(
496497
QDateTime(monthFirst),
497-
QDateTime(QDate(yearFilter, monthFilter, monthFirst.daysInMonth()))
498+
QDateTime(monthLast).addSecs(86399) // last second of the day
498499
);
499500
} else {
500501
stakesFilter->setDateRange(

0 commit comments

Comments
 (0)