From 061234f03c5189f459ac8446d56c7dc5e6445f55 Mon Sep 17 00:00:00 2001 From: Hendrik Sokolowski Date: Wed, 3 Jul 2024 00:45:00 +0200 Subject: [PATCH] update date of summer hakken, fix autumn hakken month --- _data/hakken.yml | 3 +++ _includes/HakkenDates.tsx | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/_data/hakken.yml b/_data/hakken.yml index f12f4de..34670f7 100644 --- a/_data/hakken.yml +++ b/_data/hakken.yml @@ -26,6 +26,9 @@ dates: - name: Summer 2024 id: summer-2024 theme: Hot CPU Summer + override_date: + start: '2024-08-23' + end: '2024-08-25' location: en: Cologne @ [MiOM space](https://miom.space) de: Köln @ [MiOM Kreativraum](https://miom.space) diff --git a/_includes/HakkenDates.tsx b/_includes/HakkenDates.tsx index fb38d2a..a761596 100644 --- a/_includes/HakkenDates.tsx +++ b/_includes/HakkenDates.tsx @@ -16,9 +16,16 @@ const getStartAndEnd = (date) => { Winter: 1, Spring: 4, Summer: 7, - Autumn: 10, + Autumn: 11, }[version]; + if (date.override_date) { + return { + start: new Date(date.override_date.start), + end: new Date(date.override_date.end) + }; + } + // We start searching on the 20th of that specific month const d = new Date(); d.setFullYear(parseInt(year, 10));