Skip to content

Commit 04c9cc4

Browse files
Merge pull request #45 from m0rth1um/de-tag-der-befreiung
Added Tag der Befreiung for Berlin, Germany, 2020
2 parents 4333cc5 + 7c4467f commit 04c9cc4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/Provider/DE.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public function getHolidaysByYear($year)
7979
self::STATE_RP,
8080
self::STATE_SL,
8181
)),
82-
8382
// Variable dates
8483
$easter['goodFriday']->format(self::DATE_FORMAT) => $this->createData('Karfreitag'),
8584
$easter['easterSunday']->format(self::DATE_FORMAT) => $this->createData('Ostersonntag', array(
@@ -116,6 +115,13 @@ public function getHolidaysByYear($year)
116115
));
117116
}
118117

118+
if (2020 === $year) {
119+
// https://de.wikipedia.org/wiki/Tag_der_Befreiung
120+
$holidays['05-08'] = $this->createData('Tag der Befreiung', array(
121+
self::STATE_BE,
122+
));
123+
}
124+
119125
return $holidays;
120126
}
121127

test/Provider/DETest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ public function dateProvider()
3535
array('2016-10-31', DE::STATE_BB, array('name' => 'Reformationstag')),
3636
array('2017-10-31', DE::STATE_SH, array('name' => 'Reformationstag')),
3737
array('2017-10-31', DE::STATE_BB, array('name' => 'Reformationstag')),
38-
array('2018-10-31', DE::STATE_SH, array('name' => 'Reformationstag')),
38+
array('2018-10-31', DE::STATE_SH, array('name' => 'Reformationstag')),
3939
array('2018-11-21', DE::STATE_BB, null),
4040
array('2018-11-21', DE::STATE_SN, array('name' => 'Buß- und Bettag')),
41+
array('2019-05-08', DE::STATE_BE, null),
42+
array('2020-05-08', DE::STATE_BE, array('name' => 'Tag der Befreiung')),
43+
array('2020-05-08', DE::STATE_BY, null),
44+
array('2021-05-08', DE::STATE_BE, null),
4145
array('2018-03-08', DE::STATE_BE, null),
4246
array('2019-03-08', DE::STATE_BE, array('name' => 'Internationaler Frauentag')),
4347
array('2021-03-08', DE::STATE_BE, array('name' => 'Internationaler Frauentag')),

0 commit comments

Comments
 (0)