From 59348f515fe2dfffffaa342886f33374d63e785e Mon Sep 17 00:00:00 2001 From: Sirieam Marie Hunke <hunke@itc.rwth-aachen.de> Date: Wed, 24 Apr 2024 09:54:29 +0200 Subject: [PATCH] Fix: Reverted to previous date --- src/store/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index 2cddd456..6d016105 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -121,8 +121,9 @@ export const useMainStore = defineStore({ } // Inject banner if (Object.keys(this.coscine.banner.maintenance).length === 0) { - const startsDate = new Date(2024, 4, 22, 0, 0, 0).toUTCString(); - const endsDate = new Date(2024, 5, 7, 0, 0, 0).toUTCString(); + // Javascript sets months to 0 + const startsDate = new Date(2024, 3, 22, 0, 0, 0).toUTCString(); + const endsDate = new Date(2024, 4, 7, 0, 0, 0).toUTCString(); const injectedBanner = { body: `Your opinion matters! The survey on the use of Coscine will take place from April 22 to May 7, 2024. Take the opportunity and help us to optimize the platform. The survey takes approximately 15 minutes. https://s2survey.net/coscine_2024/ // -- GitLab