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

time slot's get_startTime() is eight hours off

2 Answers 50 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 2
Doug asked on 23 Dec 2010, 06:06 AM
Hello-

When I implement the  OnClientTimeSlotContextMenuItemClicked client-side event handler in my ASPX page and call the get_startTime() method, it always adds exactly eight hours to whatever time slot I clicked on.  Since I haven't found this issue reported by anyone else, I have to assume it's something in my code or on my system, but I'm really not sure where to look.  If it helps, below is the javascript code that I am using:

        function OnClientTimeSlotContextMenuItemClicked(sender, eventArgs) {
            // this line is always 8 hours off
            alert(eventArgs.get_slot().get_startTime().format("MM/dd/yyyy hh:mm:ss"));
        }

Thanks in advance for any ideas you have.

-Doug

2 Answers, 1 is accepted

Sort by
0
Doug
Top achievements
Rank 2
answered on 23 Dec 2010, 03:26 PM
I finally solved the problem by setting the RadScheduler's DayStartTime property from "00:00:00" to "00:00:00.001".  Is there a reason I cannot use "00:00:00"?

0
Peter
Telerik team
answered on 24 Dec 2010, 05:29 PM
Hi Doug,

Thank you for sharing your findings with us. It should not be necessary to set the DayStartTime like this though. Please, try the suggestion from this forum post and let me know if this was the case at your end as well.


Regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
Doug
Top achievements
Rank 2
Answers by
Doug
Top achievements
Rank 2
Peter
Telerik team
Share this question
or