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

[Solved] Select date incorrect

1 Answer 160 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 29 May 2008, 12:29 PM
Hi

We are trying to get timezones working in the scheduler component but for some unknown reason the date selected is incorrect .

our code is 

RadScheduler1.TimeZoneOffset = TimeZoneInfo.Local.BaseUtcOffset ' (Australia est melb)

RadScheduler1.SelectedView = Telerik.Web.UI.SchedulerViewType.WeekView

RadScheduler1.SelectedDate = Now.ToUniversalTime.Date

RadScheduler1.WeekView.HeaderDateFormat =

"dd MMM yyyy"


And when displayed , the selected date is Tomorrow ie not today

Are we missing something here.

We need to set the timezone as we have multiple users which we are trying to support in different timezones.

Any help is appreciated

Regards

Andrei

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 02 Jun 2008, 10:36 AM
Hello Andrei,

The SelectedDate property is interpreted as local time. Try setting it without calling ToUniversalTime().

Greetings,
Tsvetomir Tsonev
the Telerik team

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