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

[Solved] TimeZoneOffset problems

2 Answers 217 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael Hanson
Top achievements
Rank 1
Michael Hanson asked on 03 Oct 2007, 07:14 AM
On my site I get users to select their time zone in a Profile editor (ASP.NET Profiles) and use this in several places to localise deadlines for competitions.

Now on loading my new Meeting Place that uses the Scheduler I set the TimeZoneOffset to try and get the appointments to show the localised date and time for users so they know exactly when a meeting is taking place in their own timezone.  But it is not working.

For example I set up an online meeting for 19:00 BST last night using my own account, then on another machine changed the timezone in the profile of my test user to US EST.  I expected the appointment to show up at 14:00 in scheduler, but it didn't appear at all.  A similar one at 19:00 BST the previous day showed up at 19:00.

Am I missing something or is this broken? 

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 03 Oct 2007, 10:44 AM
Hi Michael Hanson,

We have not encountered such problem so far. Our time zones example does exactly this and it works as expected. Can you please quote the code that you use to set the TimeZoneOffset?

Regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Michael Hanson
Top achievements
Rank 1
answered on 03 Oct 2007, 10:54 AM
I used the Time Zones example to see how to set the offset.

When I went to paste the code I discovered I was calling TimeZone.FromSeconds using a value returned in Minutes.

So I will investigate my dumb mistake and get back to you :-)
Tags
Scheduler
Asked by
Michael Hanson
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Michael Hanson
Top achievements
Rank 1
Share this question
or