-
Notifications
You must be signed in to change notification settings - Fork 244
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
feat: add Norfolk Island #294
base: master
Are you sure you want to change the base?
Conversation
@commenthol One little quirk I'm unsure how to handle the following: (g) Bounty Day—8 June and, if that day is a Saturday or Sunday, the next Monday; It's as if I need a "not" condition on this: |
Hi @svit4, Unfortunately there is no rule yet for "dynamic" bridge days as in your case. Would you mind adding a note like this here? # TODO: needs new rule: "substitute 06-08 if Saturday, Sunday then next Monday if 2nd Monday in June then next Monday" I was thinking that you can use the enable disable rule but it looks that there is a parser error which prevents evaluation to substitution days. Maybe you could create an issue in the parser project here. The only thing (as a workaround) which comes to my mind would be setting hard dates. Albeit this will set 3 times Anniversary (Bounty) Day for those years. like:
For "Queen's Birthday" I am wondering if acording to (h) the rule shouldn't be set to "2nd Saturday in June if Saturday then next Monday"? |
I don't think "Bounty Day" is the issue, that should simply be:
For whatever reason, every state/region dictates when they celebrate the sovereign's birthday. The problem here is that that "Queen's Birthday" moves a further week if it is already a public holiday on "he first Monday after the second Saturday in June", which would be due to Bounty Day. We need something like:
or
|
Hi @svict4, |
Thanks @commenthol that works! 06-08 if saturday,sunday then next monday:
substitute: true
name:
en: Anniversary (Bounty) Day
type: public
monday after 2nd saturday in June if is public holiday then next monday:
substitute: true
name:
en: Queen's Birthday {
"date": "2019-06-10 00:00:00",
"start": "2019-06-09T14:00:00.000Z",
"end": "2019-06-10T14:00:00.000Z",
"name": "Anniversary (Bounty) Day",
"type": "public",
"rule": "06-08 if saturday,sunday then next monday",
"_weekday": "Mon"
},
{
"date": "2019-06-17 00:00:00",
"start": "2019-06-16T14:00:00.000Z",
"end": "2019-06-17T14:00:00.000Z",
"name": "Queen's Birthday",
"type": "public",
"rule": "monday after 2nd saturday in June if is public holiday then next monday",
"_weekday": "Mon"
} I'll fix up the tests and publish the PR soon 🙂 |
Is there a way I can trigger the CI? @commenthol |
Norfolk Island is an external territory of Australia and votes for seats in the ACT, so I've added NF as a region of the ACT.