[celendar] family_equality_day

This commit is contained in:
Avris 2021-09-18 15:04:04 +02:00
parent 1011b97895
commit e5234ee202
1 changed files with 9 additions and 0 deletions

View File

@ -183,4 +183,13 @@ module.exports = [
yield new Day(lastDay.year, 5, 1); yield new Day(lastDay.year, 5, 1);
yield new Day(lastDay.year, 5, 2); yield new Day(lastDay.year, 5, 2);
}), EventLevel.Week), }), EventLevel.Week),
new Event('family_equality_day', null, 5, function* (monthDays) {
for (let d of monthDays) {
if (d.dayOfWeek === 7) {
yield d;
return;
}
}
}, EventLevel.MajorDay),
]; ];