Repository navigation
fix(TR): holiday times and start years per Law No. 2429 - #733
Merged
Merged
Conversation
- Ramazan Bayramı and Kurban Bayramı ended at noon on the day after the holiday (PT90H / PT114H from the evening before). They now end at midnight after the 3rd and 4th day. - Republic Day starts on October 28th at 13:00. - 15 July is a holiday since 2017 (Law No. 6752, in force 2016-10-29), 1 May since 2009 (Law No. 5892, in force 2009-04-27). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a few Turkey (TR) entries so they match Law No. 2429 on national and public holidays (mevzuat.gov.tr).
Religious holidays ended half a day late. With the evening-before start of Hijri dates,
PT90HandPT114Hmade Ramazan Bayramı and Kurban Bayramı run until 12:00 on the day after the holiday. For example,isHoliday(new Date('2025-04-02T10:00:00+03:00'))returned Ramazan Bayramı, but 2 April 2025 was a normal working day (the holiday was 30 March – 1 April). They now end at midnight after the 3rd and 4th day (PT78H/PT102H).Republic Day starts on 28 October at 13:00. Art. 1 says the holiday begins at 13:00 on 28 October and continues on 29 October, so I added
10-28 13:00 PT11Hwith the same name.Start years.
The law also makes the afternoon of the day before both religious holidays (arefe, from 13:00) a holiday. Hijri rules don't accept a start time, so that part still starts at the usual evening-before time. I left it as is rather than change the parser.
I ran
npm run yaml, regenerated the fixtures withnpx mocha test/all.mocha.js --writetests --countries TR(onlyTR-*.jsonchanged),npm test(5706 passing) andnpx eslint.Prepared with AI assistance (Claude Code).
🤖 Generated with Claude Code