From e8f616b53884bcd331fe4e57fe341ff80f94b5cb Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 20 Jun 2023 00:37:09 +0200 Subject: [PATCH] update hakken dates & times --- hakken.yml | 12 ++++++++---- scripts/hakken-dates.js | 16 +++++++++++++--- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/hakken.yml b/hakken.yml index 9db97f2..459df2e 100644 --- a/hakken.yml +++ b/hakken.yml @@ -12,7 +12,7 @@ content: You're invited! - We meet (almost) every month in Cologne for hakken.irl, a small three-day (friday to sunday) hackathon that's just about having fun and nerding around. + We meet (almost) every three months in Cologne for hakken.irl, a small three-day (Friday to Sunday) hackathon that's just about having fun and nerding around. ## What will we be doing? @@ -47,14 +47,16 @@ content: ## When will this happen? - hakken.irl always starts on the last friday of the month. + hakken.irl always starts on the last Friday of the month at 13:12 and ends on Sunday 16:20. + + We're meeting up every three months, typically on January, April, July and October. de: | # hakken.irl Du bist eingeladen! - Wir treffen uns (fast) monatlich in Köln zum hakken.irl, ein kleiner 3-Tägiger (Freitag bis Sonntag) Hackathon bei dem es nur darum geht Spaß zu haben und ab zu nerden. + Wir treffen uns (fast) alle drei Monate in Köln zum hakken.irl, ein kleiner 3-Tägiger (Freitag bis Sonntag) Hackathon bei dem es nur darum geht Spaß zu haben und ab zu nerden. ## Was machen wir denn so? @@ -89,4 +91,6 @@ content: ## Und wann soll das sein? - hakken.irl startet immer am letzten Freitag des Monats + hakken.irl startet immer am letzten Freitag der Monats um 13:12 und geht bis Sonntag 16:20. + + Wir treffen uns alle drei monate, üblicherweise im Januar, April, Juli und Oktober. diff --git a/scripts/hakken-dates.js b/scripts/hakken-dates.js index 323bb38..2d0166f 100644 --- a/scripts/hakken-dates.js +++ b/scripts/hakken-dates.js @@ -2,7 +2,14 @@ const skippedMonths = [ { m: 8, y: 2022 }, { m: 12, y: 2022 }, { m: 4, y: 2023 }, - { m: 12, y: 2023 }, + { m: 5, y: 2023, repeat: true }, + { m: 6, y: 2023, repeat: true }, + { m: 8, y: 2023, repeat: true }, + { m: 9, y: 2023, repeat: true }, + { m: 11, y: 2023, repeat: true }, + { m: 12, y: 2023, repeat: true }, + { m: 2, y: 2024, repeat: true }, + { m: 3, y: 2024, repeat: true }, ]; const i18n = { @@ -58,8 +65,8 @@ const week = 7 * day; const endOfWeekend = 2 * day; const start = new Date(); const hakkens = []; -// We'll be looking about half a year into the future -for (let i = 0; i < 185; i++) { +// We'll be looking about a year into the future +for (let i = 0; i < 366; i++) { const dateToTry = new Date(start.valueOf() + (i * day)); if (dateToTry.getDay() !== 5) { continue; @@ -75,6 +82,9 @@ for (let i = 0; i < 185; i++) { if (skippedMonths.find((s) => s.m === m && s.y === y)) { continue; } + if (skippedMonths.find((s) => s.repeat && s.m === m && s.y <= y)) { + continue; + } hakkens.push(dateToTry); }