Hello
I have the following datepicker
<SfDatePicker Enabled="SelectedTime.CanEdit" id="selected-transactiondate" CssClass="e-outline" Format="dddd MMMM d yyyy" StrictMode=true Min="AppStateService.MinEntryDate" Max="AppStateService.MaxEntryDate" TValue="DateTime" @bind-value="SelectedTime.TransactionDate" Placeholder="Date" FloatLabelType="@FloatLabelType.Auto"></SfDatePicker>
It is bound to TransactionDate ( DateTime datatype).
I think something has changed recently
When I initialize the date it looks like this:
..that is a Utc date with no time.
After using the date picker to change the date, then the resulting date changes from Utc to Local and the hours, minutes, seconds change accordingly (to non-zero).
This has caused havoc in my api.
I have worked around using the following to set the date back to utc.
TransactionDate = DateTime.SpecifyKind(SelectedTime.TransactionDate, DateTimeKind.Utc)
Has something changed recently with this control?
Thank you