Hi Javier,
Thanks for contacting Syncfusion forum.
Based on your shared information we suspect that you want filter the datetimeoffset column. For this we have prepared a sample as per your requirement and tried to reproduce the reported problem at our end but unfortunately we are unable to reproduce the mentioned behavior at our end.
In our grid we have used date object for that column in the dataSource and filtering one value for that date column is correctly sends query to the server. So we suggest you the way to achieve time zone conversion. Here we have used the ej.data.DataUtil.serverTimezoneOffset to convert time as per need. Please follow the below points to understand briefly,
- By default, the time zone in server side is in UTC format. The grid component will automatically convert UTC to local time when rendered in grid UI.
- Here the serverTimeZoneOffest makes the time conversion in UTC level and displayed in grid.
- When you give the serverTimeZoneOffset value as “0” it shows the exact UTC time.
- The serverTimezoneOffset value may given based on the time zone value to be displayed on grid.
Please refer the below code example.
<script>
ej.data.DataUtil.serverTimezoneOffset = 0; // Here you can change the time as you need (add or minus the 5h30m )
. . . . . . . . .
</script>
Datasource we have used in the server {
order.Add(new OrdersDetails(code + 3, "ANTON", 1, 4.3 * i, true, new DateTime(2020, 10, 05, 20, 30, 20))); // we used date object in the server
}
|
If we misunderstood your requirement, please share the below details then only we provide the appropriate solution as soon as possible.
1. Explain your requirement briefly.
2. Video/image representation of your requirement.
3. Syncfusion package and NuGet package version.
4. If possible, share issue reproducing sample.
Please get back to us, if you need any further assistance.
Regards,
Thiyagu S.