Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f90b2fd

Browse files
committed
CA.json update, includes 2 missed Canadan Holidays
Was missing two Canadian Stat holidays. - Civic Holiday, which comes after Canada day and before Labor Day - Boxing Day, which is the day after Christmas. Used http://vpcalendar.net/Holiday_Dates/Holiday_Determinations.html which was a great reference to find the date rules for these missed holidays. Though untested, I mimicked the formatting of the existing working date rules in this json file that matched the desired type of rule needed. I double and triple checked the syntax, so it should work bug free. Great API by the way. Very nicely structured in the way it uses the raw rules to calculate the dates :) Super easy to add new ones too!
1 parent c308694 commit f90b2fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

data/CA.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"name": "Canada Day",
1515
"rule": "July 1st"
1616
}, {
17+
"name": "Civic Holiday",
18+
"rule": "First Monday of August"
19+
}, {
1720
"name": "Labor Day",
1821
"rule": "First Monday of September"
1922
}, {
@@ -25,5 +28,8 @@
2528
}, {
2629
"name": "Christmas",
2730
"rule": "December 25th"
31+
}, {
32+
"name": "Boxing Day",
33+
"rule": "December 26th"
2834
}
2935
]

0 commit comments

Comments
 (0)