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?
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.
This is a screenshot that shows how the values in the grid differ from the export