search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Multiple timezone view of Scheduler

Asked by Keith White, Synergist Express Ltd, UK.
5 years ago.

Hi

Assuming the date/time data is always provided in GMT/UTC, do you have any plans to implement a resource scheduler that would allow multiple timelines to be shown (to allow resource scheduling over multiple timezones).

Timeline:-
GMT 07am 08am 09am 10am
EET 09am 10am 11am 12pm

Resources/Events:-
Resource 1 (EET)
Resource 2 (EET)
Resource 3 (GMT)
Resource 4 (EET)

To allow such a view would clearly need the all timezone offset and daylight saving rule data available. However, the component could insist that this data is provided by the server.

Many thanks.

Best regards

Keith White
Synergist Express Ltd, UK.

Answer posted by Dan Letecky [DayPilot]
5 years ago.

Provided that all dates are GMT you can add a secondary time header that will display another time zone. Just override onBeforeTimeHeaderRender and update the HTML as needed.

The limitation is that the built-in time header grouping rules are based on the GMT zone. That means the day boundaries will be based on GMT. On the hours level (and below) it will work well.

An outline:
dp.timeHeaders = [
  {groupBy: "Day"},  // GMT day
  {groupBy: "Hour"},  // GMT hour
  {groupBy: "Hour"},  // custom timezone
];

dp.onBeforeTimeHeaderRender = function(args) {
  if (args.header.level === 2) {
   var local = getLocalTimeString(args.header.start);
   args.header.html = local;
  }
};

getLocalTimeString() is your method that will get the local time for a given GMT time. This assumes you receive a list of time point mappings from the server side. Simple hour/minutes offset will only work for a limited set of use cases (because of the daylight saving time).

Comment posted by Keith White, Synergist Express Ltd, UK.
5 years ago.

Hi

Thanks for the reply.

The date boundaries would be an issue for this requirement and more than 2 timezones too. Is it possible to set the local timezone for a timeline? I'm thinking another way to show this could be split into more than one scheduler area, so one scheduler area for each timezone - date/time mappings would still be needed, of course.

This is for a commercial application, where we have developed a desktop scheduler which allows multiple timezones in one display, but we are looking to provide a web-based equivalent. Our server piece can provide date/time point mappings for any timezone including daylight saving changes. Do you undertake paid-for development work to provide enhancements of this nature?

Many thanks again.

Best regards

Comment posted by Dan Letecky [DayPilot]
5 years ago.

> Do you undertake paid-for development work to provide enhancements of this nature?

Could you please contact me at support@daypilot.org to discuss the options?

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.