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

[Solved] GridBoundColumn shows incorrect date value.

2 Answers 196 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oleg Medyanik
Top achievements
Rank 1
Oleg Medyanik asked on 30 Sep 2009, 09:52 AM
Hi Telerik Team.
I am using client side binding via WCF service and have the following issue.
In my grid there is bound column of DateTime type.
<telerik:GridBoundColumn DataField="LastUpdated" HeaderText="Last Updated" AllowFiltering="false"
DataType=
"System.DateTime"  DataFormatString="{0:MM/dd/yyyy hh:mm tt}"
<HeaderStyle Width="15%" Wrap="false"/> 
</telerik:GridBoundColumn> 

My project is deployed to server which current time is GMT -7. My current time is GMT +3

On the screenshot you will find two grids.
On the left there is my local browser which shows incorrect value in the column
On the right - browser on the same server with the  project. It shows correct date values.

If i change column type to string and perform date formatting in WCF service - date is shown correctly.

Can you please suggest what i am doing wrong (possibly some flag for grid?)

Thank you.

2 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 02 Oct 2009, 01:40 PM
If you bind when you are in the browser on the server does your local browser display the correct time?
0
Oleg Medyanik
Top achievements
Rank 1
answered on 05 Oct 2009, 08:10 AM
Yes,
For me it seems there is a problem in JSON  serialization\ serialization.
But i may be mistaking.
Tags
Grid
Asked by
Oleg Medyanik
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Oleg Medyanik
Top achievements
Rank 1
Share this question
or