From e5234ee2022f02d450a95a2000b6a4ce9438f792 Mon Sep 17 00:00:00 2001 From: Avris Date: Sat, 18 Sep 2021 15:04:04 +0200 Subject: [PATCH] [celendar] family_equality_day --- locale/_/events.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/locale/_/events.js b/locale/_/events.js index f4cb27fd..bb674d76 100644 --- a/locale/_/events.js +++ b/locale/_/events.js @@ -183,4 +183,13 @@ module.exports = [ yield new Day(lastDay.year, 5, 1); yield new Day(lastDay.year, 5, 2); }), 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), ];