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

Selected date is showing wrong in Scheduler

7 Answers 212 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
SHERFUDEEN
Top achievements
Rank 1
SHERFUDEEN asked on 23 Oct 2015, 11:32 AM

As per our requirement highlighting the current date in radscheduler. For this we are assigning selecteddate property to current datetime, its working fine. But sometimes, its highlighting the next day.

We are always converting the usertime to EST and assigning it to SelectedDate property. 

Please check the enclosed screenshot,  when we run the sample code enclosed here, its displaying current date time as 10/22/2015 20:00:15 EST but in radscheduler its highlighting 10/23/2015. 

This is observed when user time greater than 8PM EST.

Please download the sample code from below link:

[link]

Please let us know if there are any solution to fix this issue. Thank you.

7 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 28 Oct 2015, 09:52 AM
Hello,

If the Scheduler's TimeZoneID property is not set it will default to UTC 0, which could be the reason for the observed current date discrepancy. Please try setting it to your time zone and check whether the correct date is displayed. You can find the list of possible property values in this documentation article.

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
SHERFUDEEN
Top achievements
Rank 1
answered on 02 Nov 2015, 11:06 AM
Hi,
Thanks for the response.
It fixes the problem in some situations, but not all.

My application is in IST (Indian Standard Time) Server. We are using following code from the server to the User Timezone. Suppose user time zone is "Eastern Standard Time",

TimeZoneInfo oTZInfo = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");
DateTime dtUserTime =TimeZoneInfo.ConvertTime(DateTime.Now, oTZInfo);

I have set the following properties for Rad Scheduler in PageLoad

radScheduler.TimeZoneID = "Eastern Standard Time"; 
radScheduler.SelectedDate = dtDateTime;

It is working in all the situations, but problem occures from IST 10:30 AM to 3:30 PM.

Please check the attached screenshot.
0
Ivan Danchev
Telerik team
answered on 05 Nov 2015, 10:01 AM
Hello,

I was able to reproduce the issue with the provided controls (version 2014.1.225), fortunately running the sample project with the latest version of the controls displays the correct selected date so we suggest you update the controls. 

On a side note, do have in mind that the public distribution of the official Telerik .dll files is strictly forbidden and may lead to legal actions against the offender. For this reason I deleted the link in your first post. In the future please, refrain from uploading the controls along with sample pages/projects and posting the links on the forums.

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Nitesh
Top achievements
Rank 1
answered on 17 Feb 2016, 08:45 AM

hi Admin,

We upgrade Telerik.web.ui from 210.1.519.40 to 2015.3.930.40 for our product but since then in our project code below ,net System assembly method work only with case sensitive data where as it was behaving case-insensitve earlier which is expected one.i.e earlier if we pass "PACIFIC STANDARD TIME" it worrks fine but after upgrade it throws timezonenotfound error.

TimeZoneinfo.FindSystemTimeZoneByID

0
Ivan Danchev
Telerik team
answered on 19 Feb 2016, 04:50 PM
Hello Nitesh,

We are not aware of such behavior caused by the 2015.3.90.40 version of the controls. You can find attached a sample project and its code behind (the Page_Load handler) the TimeZoneInfo is correctly found using the string you posted ("PACIFIC STANDARD TIME"). Could you try running the sample project and let us know whether the "info" variable returns the expected value?

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Nitesh
Top achievements
Rank 1
answered on 19 Feb 2016, 05:37 PM
Seems mentioned attached is missing in your post. 
0
Ivan Danchev
Telerik team
answered on 22 Feb 2016, 07:39 AM
Hello Nitesh,

It seems the the .zip file did not attach properly for some reason. Let me try again.

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
SHERFUDEEN
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
SHERFUDEEN
Top achievements
Rank 1
Nitesh
Top achievements
Rank 1
Share this question
or