Skip to content

Commit

Permalink
Merge pull request #1 from ennikin-skywalker/develop
Browse files Browse the repository at this point in the history
Add Weltkindertag to a thueringen holiday (since 2019)
  • Loading branch information
ennikin-skywalker authored Oct 2, 2023
2 parents 8dad51a + bf226ec commit b05d9e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Fgits/CarbonGermanHolidays/CarbonGermanHolidays.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ public static function getHolidays($year, $states = self::ALL_STATES)
$holidays['Allerheiligen'] = mktime(0, 0, 0, 11, 1, $year);
}

if (in_array(self::THUERINGEN, $states)) {
// Weltkindertag is since 2019 holiday in thueringen
if($year >= 2019) {
$holidays['Weltkindertag'] = mktime(0, 0, 0, 9, 20, $year);
}
}

if (in_array(self::CHRISTMAS_DAYS, $states)) {
$holidays['1. Advent'] = strtotime('+11 days', $penanceDay);
$holidays['2. Advent'] = strtotime('+18 days', $penanceDay);
Expand Down

0 comments on commit b05d9e7

Please sign in to comment.