diff --git a/public/js/program.js b/public/js/program.js index 3b65593..b54ae93 100644 --- a/public/js/program.js +++ b/public/js/program.js @@ -1,24 +1,28 @@ document.addEventListener("DOMContentLoaded", function () { var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone; - /*var tzOffset = new Date().getTimezoneOffset()*60*1000*-1; - if(tzOffset !== -180*60*1000){ - var initialSlotMin = new Date(1631541600000 + tzOffset) - .toTimeString() - .split(" ")[0]; - console.log(initialSlotMin); - var initialSlotMax = new Date(1631579400000 + tzOffset) - .toTimeString() - .split(" ")[0]; - console.log(initialSlotMax); + + /*var slotMin = new Date("2021-09-13:14:00Z") + var slotMax = new Date("2021-09-13:23:30Z") + + if(slotMax.getHours()${info.event.title}
${info.event.extendedProps.speaker.nombre}
${info.event.extendedProps.description}`, @@ -88,7 +92,7 @@ document.addEventListener("DOMContentLoaded", function () { minute: "2-digit", meridiem: false, }, - //timeZone:"UTC", + timeZone:"America/Montevideo", locale: "es", initialView: "timeGridAll", initialDate: "2021-09-13", @@ -97,9 +101,11 @@ document.addEventListener("DOMContentLoaded", function () { end: "2021-09-19", }, nowIndicator: true, - now: "2021-09-13", + now: "2021-09-12", slotMinTime: "11:00:00", slotMaxTime: "21:00:00", + //slotMinTime:"11:00:00", + //slotMaxTime:"21:00:00", slotDuration: "00:15", allDaySlot: false, slotLabelFormat: { @@ -129,4 +135,7 @@ document.addEventListener("DOMContentLoaded", function () { }, }); calendar.render(); + timeZoneSelectorEl.addEventListener("change", function () { + calendar.setOption("timeZone", this.value); + }); }); diff --git a/templates/program.html b/templates/program.html index 5d83aa1..65d0977 100644 --- a/templates/program.html +++ b/templates/program.html @@ -12,6 +12,11 @@

Calendario

+

Zona Horaria:

+

Plenarias Semiplenarias @@ -20,6 +25,7 @@ Premiados Sesiones Comisión de Género +