Browse Source

BI-133009 fix: 季末日期计算有误

research/test
Oliver.Ke 1 year ago
parent
commit
7ff1c2d8c7
  1. 2
      packages/fineui/src/core/func/date.js

2
packages/fineui/src/core/func/date.js

@ -180,7 +180,7 @@ export function getQuarterStartDate(date) {
export function getQuarterEndDate(date) {
const quarterEndMonth = getQuarterStartMonth(date) + 2;
return getDate(date.getFullYear(), quarterEndMonth, getMonthDays(date));
return getDate(date.getFullYear(), quarterEndMonth, getMonthDays(date, quarterEndMonth));
}
/**

Loading…
Cancel
Save