Hi all, Please help me to fix issue. Data display in grid is not correctly. Time always is AM not PM
(Ex: 2018-08-14 1:00:00 PM
instead 2018-08-14 1:00:00 AM )
3 Answers, 1 is accepted
answered on 16 Aug 2018, 03:20 PM
Could you please check what data is coming from the server and loaded in the grid? Is it possible that for some reason the dates returned from the server are only AM dates? I would suggest to prepare a simple http://dojo.telerik.com/ example where the issue can be replicated so we can investigate it.
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.
The reason for this behavior could be caused due to the fact that the data source receives string values and is instructed to convert them to dates (the `type` property of the field is set to `date`). The result is that the datasource parses the string values based on the culture and its date parsing formats which usually are more than one. So I guess it just picks a format that doesn't include time designator and since the time value is bellow 12, it converts it to AM.
The easiest fix to this behavior is to instruct the data source to use a date parsing format that fits your data as described here.
And this is a modified version of the dojo example that utilizes this approach: