Grid components changes DateTime when sending to API

Hello,

I have a DateRangePicker inside an EditTemplate in GridColumn that connects with an API via ODATA v4. I noticed strange date changes whenever I saved my info (without change the date range) so I configured an OnActionBegin function to log the dates on save. In order to compare what is the json sent to the API, I'm using the app "Fiddler Everywhere".

Here is the issue. OnActionBegin handler variables have:

     FirstDay: 1/1/2019 0:00:00
     LastDay: 31/3/2019 0:00:00

But the Grid is sending this to the API:

     FirstDay: "2018-12-31T12:00:00-06:00"
     LastDay: "2019-03-30T12:00:00-06:00"

I'm using Syncfusion Blazor 18.1.0.59. My timezone is GMT-6.

What kind of DateTime manipulation does the Grid component do? Am I missing something?

Thanks,

Erick



1 Reply 1 reply marked as answer

RN Rahul Narayanasamy Syncfusion Team July 20, 2020 04:20 PM UTC

Hi Erick, 

Greetings from Syncfusion. 

We have validated your query and checked the reported problem at our end. The reported problem “Timezone issue occurs while updating datetime column in grid blazor component” was an known issue and it was already included in our recent release(Volume 2 release).  

You can resolve the reported problem update Syncfusion NuGet version to latest or minimum version of 18.2.0.44.  

Please note that we have introduced several API break in this release. We would like you to review the breaking changes and the release notes regarding the changes we have included in this release from the below location before you upgrade.  


Please get back to us if you need further assistance. 

Regards, 
Rahul 


Marked as answer
Loader.
Up arrow icon