28 seconds difference in DateTime column after exporting from Kendo Grid to Excel

倖福魔咒の 提交于 2020-01-02 08:11:42

问题


We have a few grids in our web application and we use Kendo for ASP.Net MVC. Some clients are reporting that dates are different when they export the grid data to Excel.

As an example, the first row comes from the controller as { "SaleDate": "2018-05-30T00:00:00", "SaleDateAndTime": "2018-05-30T08:01:40.673" }. After exporting to excel, the corresponding cell values are: 05/29/2018 23:59:32 and 05/30/2018 08:01:12, respectively.

  • I tried exporting dates with different time values and the difference after exporting to excel is always of 28 seconds.
  • This only happens on some clients (timezones are the same as the server and are propperly set).
  • This only happens when using the Chrome browser.

Has anyone faced this issue? I oppened a ticket to Telerik but they couldn't help me.

来源:https://stackoverflow.com/questions/50825864/28-seconds-difference-in-datetime-column-after-exporting-from-kendo-grid-to-exce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!