python-holidays icon indicating copy to clipboard operation
python-holidays copied to clipboard

Canada Holiday Error - Observed Christmas Day

Open macwanj opened this issue 4 years ago • 1 comments

This year, the Observed Christmas holiday in Canada was on Monday 27th Dec and following Observed Boxing Day was Tue 28th Dec

https://github.com/dr-prodigy/python-holidays/blob/94d767706111b9b725bf33c122ef4f7f64566f7a/holidays/countries/canada.py#L251 Logic here states that if Christmas falls on a Saturday, the observed Holiday is on Friday.

Now I haven't gone back in time to validate the pattern, but either it needs to be double-checked or an exception added for times when Saturday holidays are observed on Monday.

Current List generated for 2021:

2021-01-01 New Year's Day
2021-02-15 Family Day
2021-04-02 Good Friday
2021-04-05 Easter Monday
2021-05-24 Victoria Day
2021-07-01 Canada Day
2021-08-02 Civic Holiday
2021-09-06 Labour Day
2021-10-11 Thanksgiving
2021-12-24 Christmas Day (Observed)
2021-12-25 Christmas Day
2021-12-27 Boxing Day (Observed)
2021-12-31 New Year's Day (Observed)

macwanj avatar Dec 29 '21 03:12 macwanj

Hi, this is already being analyzed / reviewed on #579

Marking as duplicate.. Let's follow up there, thx!

dr-prodigy avatar Dec 29 '21 09:12 dr-prodigy