Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Abhishek Shukla on Aug 25, 2009 06:19
open dhtmlx forum
DHTMLXscheduler + TimeZone

Hello
I want to display the all three US timezone in DHTMLXscheduler, So let me know is it possible, and it will be great few you send me some example Link.

Thanks
Abhishek Shukla
Answer posted by Support on Aug 25, 2009 06:32
Can you provide some more details, what do you mean by "all three US timezone" ?
Answer posted by Abhishek Shukla on Aug 25, 2009 07:23
Hi,
Thanks for your quick response,
Sorry not three But all the four USA Time Zone. The DHTMLXscheduler on the left bar should display the all the four USA Timezone.

Thanks for the help.

Abhishek Shukla
Answer posted by Support on Aug 26, 2009 01:46
The dates, in left scale-bar defined by 
       scheduler.templates.hour_scale

You can redefine it in the necessary way

var hour = scheduler.date.date_to_str("%H");
scheduler.templates.hour_scale=function(date){
          var base = hour(date); //get hour value
          //form final string
          var html = " Zone1: "+base+"<br>Zone2: "+(base+1);

          return html;
}
Answer posted by Abhishek Shukla on Aug 26, 2009 12:06
Hello,
Thanks for your response let me be more clear with what I am exactly looking for.

Basically the Scheduler Calendar should show three time zone

PST  MST  EST                            27 Aug 2009         
3:00  2:00   00:00
2:00  1:00   23:00 

But currently I am only able to see only one row, So please help me to Fix the Calendar.

Thanks
Abhishek
Answer posted by Abhishek Shukla on Aug 26, 2009 12:37
Or just to make question more simpler can we have more then one "scheduler.templates.hour_scale - y-scale on day and week views;" if so how can we implement it,.
Answer posted by Support on Aug 27, 2009 01:29
There is only one scale cell per hour , so it not possible to have few templates in the same time. 
Still, something similar can be achieved - please check the attached sample. 
Attachments (1)
97392.ZIP35.85 Kb
Answer posted by abhishek shukla on Aug 30, 2009 11:50
Hello
Thanks a ton that worked :) ... But one and the last query now on the header of all the three column i want to show "PST EST MST", So I am trying by myself but no success yet.

Thanks
Abhishek Shukla
Answer posted by Support on Aug 31, 2009 02:45
You can place a custom html element at the necessary position.
Please check the updated  sample. 
Attachments (1)
81273921.ZIP35.97 Kb