Premium forums

Forums / Kendo UI Framework / Globalization / kendo.toString returning slightly wrong time values

kendo.toString returning slightly wrong time values

  • David
    David avatar

    27 Jul 2012 (Link to this post)

    I'm displaying records from a DB in a kendo grid, and one DB field is a datetime.

    I'm using the following to display the value: kendo.toString(datetime,"dd MMMM yyyy, h:MM:ss")

    This works, but the time it displays is incorrect. For instance if the value in the DB is "2012-07-27 15:28:11.383" the value displayed will be "27 July 2012, 3:07:12", which is off by about 21 minutes.

    What's up with that?

Read FAQ or see Kendo UI in action!

Launch Demos