r1zyn/MatarikiProgram

Issue: Incorrect dates for some years

r1zyn opened this issue · 2 comments

r1zyn commented

The program seems to be producing incorrect dates for the years 2033, 2036, 2041 and 2044.
Some of the incorrect dates may be due to lunar months, but otherwise the actual date is either the previous or next Friday.
Need to resolve both.

2033
Tangaroa Period: 20 – 23 June
Pointer Date: 20 June
Program Date: 17 June
Holiday Date: 24 June

2036
Tangaroa Period: 17 - 20 July
Pointer Date: 18 June
Program Date: 20 June
Holiday Date: 18 July

2041
Tangaroa Period: 21 - 24 July
Pointer Date: 22 June
Program Date: 21 June
Holiday Date: 19 July

2044
Tangaroa Period: 19 - 22 June
Pointer Date: 19 June
Program Date: 17 June
Holiday Date: 24 June

r1zyn commented

The date for 2044 has been resolved in 80f3eb3, Matariki couldn't occur before the 19th of June according to the 19th June rule

r1zyn commented

The date for 2033 has been resolved in 23d6590