Hi,
When I export data from the grid to Excel I'm getting +1hr timezone offsets on some dates, because of DST adjustments in the UK I'm guessing. The dates in my datasource don't have time offsets, so I think the grid (or maybe moment?) is introducing these? How can I turn that off and have the dates exported as they are shown in the grid without time offsets added?
This is a screenshot that shows how the values in the grid differ from the export
Hello,
Thank you for the detailed information provided.
When receiving data from a backend, the igDataSource class recreates the data on the client as well. When creating date objects on the client though, the date is always created in local time, so this introduces a difference. Though the igGrid is formatting this data based on tne enableUTCDates property, the igGridExcelExporter takes the client data and export it to the Excel worksheet, so in the end we may see such variations as in your case.
Possible resolutions are:
I recommend going for the last approach and I will attach a sample demonstrating how to achieve it shortly.
So the 1st solution does not work. I've done this, dates still display correctly, exported dates are -5 hours off and incorrect. Is there a way to turn off UTC dates on the excel exporter?
Hi Nick! Is it possible that you share the a sample app reproducing the issue or more details around?For example - what timezone your machine is set to and a sample of the data coming from the server, along with the grid configuration and I will be glad to have a look at it.