Our pure JavaScript Scheduler component


Post by v-paulrausch »

We are showing a day at a time view with 24 hour view, we would like to show everything as UTC so no matter who is viewing the calendar they see the same view regardless of user timezone. I can handle the event portion but I'm getting weirdness on the header preset.

 base: "hourAndDay",
      headers: [
        {
          unit: "HOUR",
          align: "center",
          dateFormat: "h A",
        }

//Set timezone offset to 0 for UTC timezone
 const [schedulerBoardConfig] = useState<BryntumSchedulerProProps>({
    timeZone: 0,

When I load the calendar the first time(I am in central us time) I see this, 5am as first time slot.

5am.JPG
5am.JPG (46.72 KiB) Viewed 130 times

Then we I reset the start date on the scheduler now it renders 12am first slot, the only then I am changing scheduler.startDate.

12am.JPG
12am.JPG (75.97 KiB) Viewed 130 times

What we want to see is 12am to 11pm everyday for everyone.

Thanks,

Paul


Post by sergey.maltsev »

Hi!

Did you try to follow the instructions in this guide?

https://bryntum.com/products/scheduler/docs/guide/Scheduler/customization/timezone

If that didn't help, please attach some application as a test case which we can run and see.


Post by v-paulrausch »

Yes, I'm setting the TZ with the number 0 offset, it seems to render initially fine, but when I reset the scheduler start date it renders it in local time even though the TZ is still set at 0. So it seems like its losing the timezone when you reset the startDate.


Post by sergey.maltsev »

Hi!

We are waiting for a test case to check this.


Post Reply