Premium support for our pure JavaScript UI components


Post by snath »

Hi,

We are currently using Scheduler Pro v 5.3.2.

We are aware that there is a new timeZone feature available, but this does not match our usecase as the events retrieved from our DB will already have converted time values.

For example:

  1. User Logs into our Application with timezone set as CST.
  2. Make an API call to retrieve the events.
  3. Event A is retrieved with startTime as 08:00 AM and endTime as 09:00PM
  4. User changes the timezone to EST.
  5. Make an API to retrieve the events.
  6. Same Event A is retrieved with startTime as 09:00 AM and endTime as 10:00 PM.
  7. Update the Gantt.

Now, we wanted to know without using the timeZone property is there a way to update showCurrentTimeLine to display in EST or PST even though the local time is in CST.

Looking forward to hear from you.

Thanks!
Suhan


Post by alex.l »

Hi Suhan,

No there is no such option available. You can hide the original current time line and add your custom with any time you need.
You will also need to add a logic to update timeRange to show correct time.
Please see https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/TimeRanges
TimeRanges demo is here https://bryntum.com/products/scheduler/examples/timeranges/
See timeRange with name "Important time" as example of how to add a custom line.

All the best,
Alex


Post Reply