Skip to content

Commit

Permalink
fix(calendars): missing months in ethiopian year view
Browse files Browse the repository at this point in the history
  • Loading branch information
trik committed Feb 4, 2020
1 parent 086b527 commit 9a8aa8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calendars/ethiopian/calendar-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class AjfEthiopianCalendarService extends AjfCalendarService {
for (let i = 0; i <= 4; i++) {
let row: AjfCalendarEntry[] = [];
for (let j = 0; j < 3; j++) {
const curMonth = i * 4 + j;
const curMonth = i * 3 + j;
if (curMonth < 13) {
curDate = new EthiopianDate(year, curMonth, 1);
let date = EthiopianDate.ethiopianToGregorian(curDate);
Expand All @@ -159,6 +159,7 @@ export class AjfEthiopianCalendarService extends AjfCalendarService {
}
rows.push(row);
}
console.log(rows);

return rows;
}
Expand Down

0 comments on commit 9a8aa8c

Please sign in to comment.