mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
fix last month range error
This commit is contained in:
+1
-1
@@ -207,7 +207,7 @@ function getDateRangeByDateType(dateType, firstDayOfWeek) {
|
|||||||
maxTime = getThisMonthLastUnixTime();
|
maxTime = getThisMonthLastUnixTime();
|
||||||
minTime = getThisMonthFirstUnixTime();
|
minTime = getThisMonthFirstUnixTime();
|
||||||
} else if (dateType === dateTimeConstants.allDateRanges.LastMonth.type) { // Last month
|
} else if (dateType === dateTimeConstants.allDateRanges.LastMonth.type) { // Last month
|
||||||
maxTime = getUnixTimeBeforeUnixTime(getThisMonthLastUnixTime(), 1, 'months');
|
maxTime = getUnixTimeBeforeUnixTime(getThisMonthFirstUnixTime(), 1, 'seconds');
|
||||||
minTime = getUnixTimeBeforeUnixTime(getThisMonthFirstUnixTime(), 1, 'months');
|
minTime = getUnixTimeBeforeUnixTime(getThisMonthFirstUnixTime(), 1, 'months');
|
||||||
} else if (dateType === dateTimeConstants.allDateRanges.ThisYear.type) { // This year
|
} else if (dateType === dateTimeConstants.allDateRanges.ThisYear.type) { // This year
|
||||||
maxTime = getThisYearLastUnixTime();
|
maxTime = getThisYearLastUnixTime();
|
||||||
|
|||||||
Reference in New Issue
Block a user