update date of summer hakken, fix autumn hakken month #30

Merged
b12f merged 3 commits from feature/update-summer-hakken into main 2024-07-07 21:21:12 +00:00
2 changed files with 11 additions and 1 deletions
Showing only changes of commit 061234f03c - Show all commits

View file

@ -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)

View file

@ -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));