Skip to content

fix(TR): holiday times and start years per Law No. 2429 - #733

Merged
commenthol merged 1 commit into
commenthol:masterfrom
Asimmimx:fix/tr-holiday-times
Nov 29, 2026
Merged

commenthol merged 1 commit into
commenthol:masterfrom
Asimmimx:fix/tr-holiday-times

Conversation

@Asimmimx

Copy link
Copy Markdown
Contributor

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, PT90H and PT114H made 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 PT11H with the same name.

Start years.

  • 15 July was added by Law No. 6752, in force since 29 October 2016, so the first holiday was in 2017. Until now 15 July 2016 was listed as a holiday.
  • 1 May was added by Law No. 5892, in force since 27 April 2009.

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 with npx mocha test/all.mocha.js --writetests --countries TR (only TR-*.json changed), npm test (5706 passing) and npx eslint.

Prepared with AI assistance (Claude Code).

🤖 Generated with Claude Code

- 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>
@commenthol
commenthol merged commit 47473e9 into commenthol:master Nov 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants