Hi,
I’m using Blazor webassembly with .Net5 and Syncfusion.Blazor.Calendars 19.4.0.48.
1) I
found an
inconsistency when using DateTimePicker with a DateTimeOffset value and ValueChange
event. I attached an example page (DateTimeOffsetWithPicker.razor) with two screen
print and a project (WasmSfApp).
The first screen print (case 1) is when the user selects a date but no time. The value I’m getting through the ValueChange event is with my browser UTC (+01.00). I picked “05/02/2022 00:00” and get “05/02/2022 00:00:00 +01:00”.
The second screen print (case 2) is when the user selects a time. The value I’m getting through the ValueChange event is without my browser UTC. I picked “05/02/2022 00:30” and get “05/02/2022 00:00:05 +00:00”.
Can you confirm that it is an issue?
2) When I use a DateTimePicker component with DateTimeOffset, I’m expecting that the returned value contains my browser UTC (like case 1).
But, if the value returned doesn’t have my UTC (like case 2), I don’t have any advantage to use DateTimeOffset compared to DateTime. Besides, I will have to add the browser UTC myself when a date is picked.
Therefore, I think the preferred case is case 1 and case 2 should be reported as an issue.
Do you agree with me? Can you report case 2 as the issue and make case 1 the default behavior?
Thanks for your help.
Best regards.
François