diff --git a/src/store/index.ts b/src/store/index.ts index 2cddd4561ccd98e0fa8b720f43bec646e7815fcd..6d016105ad118ff53388fdcd479ea2286844a578 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/ //