Skip to content

Commit

Permalink
Merge pull request #12 from ennikin-skywalker/master
Browse files Browse the repository at this point in the history
Add Weltkindertag to a thueringen holiday (since 2019)
  • Loading branch information
micronax authored Oct 3, 2023
2 parents 8dad51a + b05d9e7 commit 678bb3c
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 678bb3c

Please sign in to comment.