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

shift_exceptions does not prevent New Years Day (Observed) in some cases #610

Closed
paulpharr opened this issue Jan 7, 2021 · 2 comments · Fixed by #638
Closed

shift_exceptions does not prevent New Years Day (Observed) in some cases #610

paulpharr opened this issue Jan 7, 2021 · 2 comments · Fixed by #638

Comments

@paulpharr
Copy link

When January 1 is on a Saturday (as it is in 2022), the United States calendar for the prior year (in this case 2021) has holiday New Years Day (Observed) on December 31 even when shift_exceptions contains an exception for January 1.

work holiday: 2021-12-31 [fri] - New Years Day (Observed)

shift_exceptions = ((1, 1),
                    (12, 25),
                    )
@brunobord
Copy link
Member

Looks like a duplicate of #200
I think I need to work on it this year. Stay tuned!

@brunobord brunobord added this to Warming up in Workalendar via automation Jan 8, 2021
@brunobord brunobord moved this from Warming up to To Do in Workalendar Jan 8, 2021
@brunobord brunobord moved this from To Do to Working in Workalendar Mar 5, 2021
brunobord added a commit that referenced this issue Mar 5, 2021
brunobord added a commit that referenced this issue Mar 5, 2021
…even if the exceptions are set "next/previous year"

refs #610
brunobord added a commit that referenced this issue Mar 5, 2021
…even if the exceptions are set in the next or previous year

refs #610
brunobord added a commit that referenced this issue Mar 5, 2021
…even if the exceptions are set in the next or previous year

refs #610
brunobord added a commit that referenced this issue Mar 5, 2021
…even if the exceptions are set in the next or previous year

refs #610
brunobord added a commit that referenced this issue Mar 5, 2021
- Bugfix: USA calendar would take the `shift_exceptions` into account, even if the exceptions are set in the next or previous year (#610).
- Requirements: Unpin `pyupgrade` library (#634).
@brunobord brunobord mentioned this issue Mar 5, 2021
14 tasks
Workalendar automation moved this from Working to Done Mar 5, 2021
@brunobord
Copy link
Member

you may try to upgrade to the 15.0.2, hopefully, it includes a fix to your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Workalendar
  
Done/Closed/Published
Development

Successfully merging a pull request may close this issue.

2 participants