Skip to content

Commit

Permalink
Target date for all time balance to use today's date
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 committed Aug 1, 2020
1 parent d1520e4 commit f6644ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/classes/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Calendar {
// last day of the month. To do so we move to the first day of the following month
isCurrentMonth = targetYear === this._getTodayYear() && targetMonth === this._getTodayMonth(),
targetDate = isCurrentMonth ?
new Date(targetYear, targetMonth, this._getCalendarDate()) :
new Date(targetYear, targetMonth, this._getTodayDate()) :
new Date(targetYear, targetMonth + 1, 1);
if (isCurrentMonth && this._getCountToday()) {
targetDate.setDate(targetDate.getDate() + 1);
Expand Down

0 comments on commit f6644ac

Please sign in to comment.