[en][calendar] hate crime week, deaf week

This commit is contained in:
Avris 2021-10-01 10:22:30 +02:00
parent beb3974664
commit 87556f1cca
1 changed files with 19 additions and 0 deletions

View File

@ -107,7 +107,26 @@ module.exports = [
} }
}, EventLevel.Day), }, EventLevel.Day),
new Event('Hate Crime Awareness Week (UK)', null, 10, function* (monthDays) {
let saturdays = 0;
for (let d of monthDays) {
if (d.dayOfWeek === 6) {
saturdays++;
}
if (saturdays === 2 || (saturdays === 3 && d.dayOfWeek === 6)) {
yield d;
}
}
}, EventLevel.Week),
// one-off events // one-off events
new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.Day), new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.Day),
new Event('LGBTQIA+ Equal Pay Awareness Day', null, 6, dayYear(16, 2021), EventLevel.Day), new Event('LGBTQIA+ Equal Pay Awareness Day', null, 6, dayYear(16, 2021), EventLevel.Day),
new Event('Deaf LGBTQ Awareness Week', null, 4, function* (monthDays) {
for (let d of monthDays) {
if (d.day >= 11 && d.day <= 17 && d.year === 2021) {
yield d;
}
}
}, EventLevel.Week),
]; ];