This is a migrated thread and some comments may be shown as answers.

RAD Scheduler daylight saving time issue

3 Answers 159 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
devi
Top achievements
Rank 1
devi asked on 09 Jul 2008, 08:27 PM
Hi,

I have an issue with RADScheduler.
When I click on any free time slot between today's date and 11/02/08 I could see the correct time displaying. But When I click on the time slots between  11/02/08 and 03/08/09 it automatically decrements time by 1 hr . Looks like it is automatically adjusting to daylight saving time. Example if I click on 7:00 it gives me 6:00. But we don't want that to happen because we want to schedule appointments at 7:00 but not at 6:00.

Please help me with this..

I am giving my sample javascript code here.

function

OnClientTimeSlotClick(sender,eventArgs)

{

var now = new Date();

now=eventArgs.get_time();

alert(now);

}

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 10 Jul 2008, 03:00 PM
Hello Devi,

We tested this case with version 2008.1619 of Telerik.Web.UI and default settings for RadScheduler, but we couldn't replicate the problem. Can you elaborate how you create RadScheduler and if possible, send us some code?



All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
devi
Top achievements
Rank 1
answered on 10 Jul 2008, 03:40 PM
We are using the Prometheus version of  RADSchedulers and here is my code

<

telerik:RadScheduler runat="server" ID="RadScheduler1" EnableEmbeddedSkins="True" Height="630px"

Skin="Outlook" DayStartTime="06:00:00" DayEndTime="22:00:00" TimeZoneOffset="00:00:00"

DataKeyField="REP_APPT_ID" OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick" OnClientTimeSlotClick="OnClientTimeSlotClick"

DataSubjectField="Subject" DataStartField="START_DT_TIME" DataEndField="END_DT_TIME" AllowDelete="false" AllowEdit="false" AllowInsert="false" ShowViewTabs="false" >

</telerik:RadScheduler>

function

OnClientTimeSlotClick(sender,eventArgs)

{

var now = new Date();

now=eventArgs.get_time();

var dst = (this.dst && ((d >= dstStartDate) && (d <= dstEndDate))) ? 3600000 : 0;

var month=now.getMonth();

month=parseInt(month)+1;

var date=now.getDate();

var year=now.getFullYear();

var hrs=now.getHours();

var mins=now.getMinutes();

var time=parseInt(hrs)+parseInt(5)

var dttime=month+'/'+date+'/'+year+' '+time+':'+mins;

//alert(dttime);

window.location.replace(

'UpdateCalendar.aspx?sDate='+dttime)

}



0
Peter
Telerik team
answered on 10 Jul 2008, 04:42 PM
Hello devi,

We tested the provided code, but still the problem did not appear on our side. Please, refer to the attached screenshot and let us know if we are missing something.


All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
devi
Top achievements
Rank 1
Answers by
Peter
Telerik team
devi
Top achievements
Rank 1
Share this question
or