-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Adding Full Mandatory Mexican holidays #20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you rebase this branch, in order to run the tests here?
As the Mexican public holidays seem a bit more difficult, I'll leave this PR open until some people upvoted this as approval.
src/Countries/Mexico.php
Outdated
return 'mx'; | ||
} | ||
|
||
/** @return array<string, CarbonImmutable> */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments right?
For that part, done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks! Could you solve the merge conflicts? |
Already fixed, some other branch was merged with optional days. |
Great, thank you! |
I made some adjustments, could you verify if the governmentChangeDate() change is correct? |
LGTM! |
* feat(Mexico.php): rebase main to put mandatory days * feat(Mexico.php): finished dates
Nation-wide holidays for Mexico from the official government publication:
https://www.gob.mx/profedet/es/articulos/sabes-cuales-son-los-dias-de-descanso-obligatorio-para-este-2024
Article 74 of the Federal Labor Law indicates the following mandatory rest days:
I. January 1st;
II. The first Monday of February in commemoration of February 5th;
III. The third Monday of March in commemoration of March 21st;
IV. May 1st;
V. September 16th;
VI. The third Monday of November in commemoration of November 20th;
VII. October 1st every six years, when it corresponds to the transmission of the Federal Executive Power;
VIII. December 25th, and
IX. The day determined by federal and local electoral laws, in the case of ordinary elections, to conduct the electoral day.
Aside from these, any additional days are considered optional.