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

[Solved] HoursPanelTimeFormat Problem

2 Answers 251 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hilary
Top achievements
Rank 1
Hilary asked on 28 May 2008, 06:43 PM
I am having problems with the HoursPanelTimeFormat settings for the Rad Scheduler control.  I have a web application deployed to a webserver in the United States and a server in Sweden.

The server in the United States displays hours in the hours panel properly according to HoursPanelTimeFormat (h:mm tt).

1:00 AM
1:00 PM

The server in Sweden does not display the hours properly for the page.  The HoursPanelTimeFormat (h:mm tt) is ignored and the hours are displayed as:

01:00
13:00

Can you help me with this request?

Thank you,

Hilary

2 Answers, 1 is accepted

Sort by
0
Hilary
Top achievements
Rank 1
answered on 28 May 2008, 06:53 PM
I was able to fix the problem by explicitly setting the HoursPanelTimeFormat in the markup of the .aspx page and not the properties of the control in the designer view.

0
T. Tsonev
Telerik team
answered on 29 May 2008, 01:58 PM
Hi Hilary,

Thank you for sharing your solution. The HoursPanelTimeFormat should be set explicitly, otherwise it defaults to the one specified by the culture on the server. The Visual Studio designer will not persist the value if it is the same as the default. As a result you cannot set the time format to "h:mm tt" through the deisgner on your machine, as it is the default value for the en-US culture. Setting it directly in the markup is the only solution for now. We will consider making "h:mm tt" the default value for this property, regardless of the server culture.

Regards,
Tsvetomir Tsonev
the Telerik team

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