Skip to content
Snippets Groups Projects

Fix: Reverted to previous date

Merged Sirieam Marie Hunke requested to merge Issue/2879-shortTermBanner into main
+ 3
2
@@ -121,8 +121,9 @@ export const useMainStore = defineStore({
@@ -121,8 +121,9 @@ export const useMainStore = defineStore({
}
}
// Inject banner
// Inject banner
if (Object.keys(this.coscine.banner.maintenance).length === 0) {
if (Object.keys(this.coscine.banner.maintenance).length === 0) {
const startsDate = new Date(2024, 4, 22, 0, 0, 0).toUTCString();
// Javascript sets months to 0
const endsDate = new Date(2024, 5, 7, 0, 0, 0).toUTCString();
const startsDate = new Date(2024, 3, 22, 0, 0, 0).toUTCString();
 
const endsDate = new Date(2024, 4, 7, 0, 0, 0).toUTCString();
const injectedBanner = {
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/
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/
//
//
Loading