Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct Swedish and Finnish public holidays #465

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/holidays/fi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ PH:
- {'name': 'pääsiäispäivä - påskdagen', 'variable_date': easter}
- {'name': 'toinen pääsiäispäivä - annandag påsk', 'variable_date': easter, 'offset': 1}
- {'name': 'vappu - första maj', 'fixed_date': [5, 1]}
- {'name': 'helatorstai - Kristi himmelsfärdsdag', 'variable_date': easter, 'offset': 39}
- {'name': 'helluntai - pingst', 'variable_date': easter, 'offset': 49}
- {'name': 'juhannuspäivä - midsommarafton', 'variable_date': nextSaturday20Jun}
- {'name': 'juhannuspäivä - midsommardagen', 'variable_date': nextSaturday20Jun}
- {'name': 'pyhäinpäivä - alla helgons dag', 'variable_date': nextSaturday31Oct}
- {'name': 'itsenäisyyspäivä - självständighetsdagen', 'fixed_date': [12, 6]}
- {'name': 'joulupäivä - juldagen', 'fixed_date': [12, 25]}
Expand Down
1 change: 1 addition & 0 deletions src/holidays/se.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ PH:
- {'name': 'påskdagen', 'variable_date': easter}
- {'name': 'annandag påsk', 'variable_date': easter, 'offset': 1}
- {'name': 'första maj', 'fixed_date': [5, 1]}
- {'name': 'Kristi himmelsfärdsdag', 'variable_date': easter, 'offset': 39}
- {'name': 'pingstdagen', 'variable_date': easter, 'offset': 49}
- {'name': 'nationaldagen', 'fixed_date': [6, 6]}
- {'name': 'midsommardagen', 'variable_date': nextSaturday20Jun}
Expand Down
3 changes: 2 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2460,13 +2460,14 @@ test.addTest('Variable days: Swedish public holidays.', [
[ '2015-04-05 00:00', '2015-04-06 00:00', false, 'påskdagen' ],
[ '2015-04-06 00:00', '2015-04-07 00:00', false, 'annandag påsk' ],
[ '2015-05-01 00:00', '2015-05-02 00:00', false, 'första maj' ],
[ '2015-05-14 00:00', '2015-05-15 00:00', false, 'Kristi himmelsfärdsdag' ],
[ '2015-05-24 00:00', '2015-05-25 00:00', false, 'pingstdagen' ],
[ '2015-06-06 00:00', '2015-06-07 00:00', false, 'nationaldagen' ],
[ '2015-06-20 00:00', '2015-06-21 00:00', false, 'midsommardagen' ],
[ '2015-10-31 00:00', '2015-11-01 00:00', false, 'alla helgons dag' ],
[ '2015-12-25 00:00', '2015-12-26 00:00', false, 'juldagen' ],
[ '2015-12-26 00:00', '2015-12-27 00:00', false, 'annandag jul' ],
], 1000 * 60 * 60 * 24 * 12, 0, false, nominatim_by_loc.se, 'not last test');
], 1000 * 60 * 60 * 24 * 13, 0, false, nominatim_by_loc.se, 'not last test');

test.addTest('Variable days: Weekday in given week.', [
'PH',
Expand Down
Loading