-
Notifications
You must be signed in to change notification settings - Fork 120
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
Missing public holidays for Sweden #72
Comments
Thanks very much for the translation. I will probably add them in release 3.1.1. |
Though looking at the relevant source file, I now see that you want the holiday names to use the localized values. Since the ordering of the entries matches, you could probably easily pick those from the Swedish law text though? |
I guess localized holiday names make more sense. I will use the Swedish onces from the law text. |
Swedish public holidays seem to have some special cases like "On Saturday that falls during the period between June 20 and June 26". Because of that, I would like to wait until #71 is closed before I will implement them. |
Can you maybe submit a PR please? See https://github.com/ypid/opening_hours.js#holidays-1 |
This issue is not dependent on #71 anymore. PR are still welcome. |
Alas I'm not a JavaScript programmer, so a PR might not be a good idea. My day job is as an embedded real time systems C/C++ programmer. |
@VorpalBlade Thanks for your help! |
@VorpalBlade Can you have a look if the definition is correct and works correctly? If all works as expected you can close this issue. URL for testing: http://openingh.openstreetmap.de/evaluation_tool/?EXP=PH&DATE=1466965680000&lat=63&lon=16&mode=0/ PH for the next 4 years:
|
Closing. Feel free to comment. |
Can this be opened again now that there's a pull request? |
Opening this issue does not help and is against the policy that I have documented here: https://github.com/opening-hours/opening_hours.js?tab=readme-ov-file#holiday-data I mainly need help in form of PR reviews and testing. See #341 |
The tool told me the following when I was verifying a conditional maxspeed in Sweden:
The official law for public holidays is http://www.riksdagen.se/sv/Dokument-Lagar/Lagar/Svenskforfattningssamling/Lag-1989253-om-allmanna-hel_sfs-1989-253/ (in Swedish)
The English Wikipedia has the following page that may be of help (though it appears to be incomplete, it doesn't specify when Easter actually is for example): https://en.wikipedia.org/wiki/Public_holidays_in_Sweden
For that reason here is a translation of the law (I'm a native speaker):
The text was updated successfully, but these errors were encountered: