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

Feature request/review of the scheduler timezone offest

5 Answers 72 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Marcus Eddy
Top achievements
Rank 1
Marcus Eddy asked on 03 Sep 2008, 05:59 AM
Hi There

It would be nice to have the option to just be able to adjust a "Today Date" offset separately to the timezone offset.

Currently the timezone offset changes the values in the Database in relation to what is put in the scheduler i.e.  02/09/2008 1:00pm in the scheduler is actually stored in the db as 02/09/2008 3:00am with a 10 hr UTC offset which is obviously incorrect data.

This is not very useful when using the events outside of the scheduler ie a listview of a summary of events or looking at the data in the database  as you have to convert each value back to the non offset time.  In our scenario if we could just set an offset for todays date then this counteract any need for the offset to be applied to the each appointment as it appears that the only difference for the clients using the scheduler from Aus to US is the "Todays Date" and perhaps thhe navigation with the current week switch over

Our set up is
Web Server US
DB Server US
Client AUS


Cheers Marcus

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 05 Sep 2008, 04:20 PM
Hi Marcus,

If I understand you correctly, you only need to display appointments in Australian time on your site. As your server is in the US, the displayed "Today" date is incorrect. I think the workaround is quite simple. You should set your "SelectedDate" according to the Australian time:

DateTime nowAus = DateTime.Now.AddHours(CurrentAustralianOffset); 
RadScheduler1.SelectedDate = nowAus; 

You should decide on a way to obtain the time zone offset. As .NET Framework prior to version 3.5 provides time zone offset information only for the current time zone, you should consider either using the TimeZoneInfo class (.NET 3.5) or external library, such as TZ4Net to obtain correct values according to DST rules.

The TimeZoneOffset property of RadScheduler is designed for scenarios where you want different customers to see the appointments with times adjusted for their time zone. Look at this example for a demonstration:
http://demos.telerik.com/ASPNET/Prometheus/Scheduler/Examples/TimeZones/DefaultCS.aspx
I hope this helps.

All the best,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Marcus Eddy
Top achievements
Rank 1
answered on 29 Sep 2008, 05:20 PM
Hi There,

Sorry for the tardy reply i was finishing off a project. I believe you have understood what i was after however setting the selected date does not seem to move the background colour behind the "day name" header  (in the week view) to the correct day.  I did confirm that the selected date was assigned the right datetime but this did not seem to be reflected in the scheduler as desired.  Could you please confirm that using the selected date will change today css class to the right day,  a live example can be seen at http://www.activelaunceston.com.au/events.aspx

Cheers Marcus


0
T. Tsonev
Telerik team
answered on 01 Oct 2008, 04:32 PM
Hi Marcus,

I have replied to you in the support ticket.

Regards,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Amir Maharjan
Top achievements
Rank 1
answered on 22 Dec 2009, 05:41 AM
Hi Tsvetomir,
I'm having the same problem and I also want to highlight the today date correctly.I also followed your suggestion but that didn't help.Would you mind sharing the workaround?

I'm using RadScheduler of version 2009.2.701.20.

Thanks,
Amir

0
Peter
Telerik team
answered on 24 Dec 2009, 05:35 PM
Hello Amir,

I wonder if this kb article can help you
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/setting-special-days-or-time-slots-in-radscheduler.aspx

You should look at the variations further down the article > Highlight the current day.

Let us know how it goes.


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
Marcus Eddy
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Marcus Eddy
Top achievements
Rank 1
Amir Maharjan
Top achievements
Rank 1
Peter
Telerik team
Share this question
or