问题
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