DateTimeOffset invalid cast

Hi there Radzen :v:

I have a datetimeoffset column in a SqlServer table.

When generating CRUD pages for the entity, the following exception is thrown on submission of a patch request:
Invalid cast from 'System.DateTime' to 'System.DateTimeOffset'.

In the BlazorCRMWASM demo, the line causing this, can be found here:
radzen-examples/EntityPatch.cs at master · radzenhq/radzen-examples · GitHub

I understand the DateTimePicker doesn't support DateTimeOffset (DateTimeOffset is not supported), but in my instance the field is displayed as text only - it's not being updated in the form.

Is this behaviour expected?

Thanks for the report @damian_s! We will do our best to provide fix for this in our next update tomorrow.

1 Like