[en] Update events.js - moving transition week to main calendar

This commit is contained in:
Paweł Dembowski 2022-08-15 19:07:52 +00:00
parent 090af1edf2
commit 34c9c0be72

View File

@ -231,23 +231,6 @@ module.exports = [
}
}, EventLevel.Day, [], null, 'Paush 6 / पौष ६'),
// last full week (Monday - Friday) in January
new Event('{https://nationaltransitionweek.wordpress.com/=Transition Week}', 'Transgender', 1, function* (monthDays) {
let lastFullWeek = [];
let currentWeek = [];
for (let d of monthDays) {
if (d.dayOfWeek === 1) {
lastFullWeek = currentWeek;
currentWeek = [];
}
if (d.dayOfWeek >= 1 && d.dayOfWeek <= 5) {
currentWeek.push(d);
}
}
yield* currentWeek.length === 5
? currentWeek
: lastFullWeek;
}, EventLevel.Week),
// one-off events
new Event('Day of Silence', null, 4, dayYear(23, 2021), EventLevel.Day),