MudBlazor/MudBlazor

MudDatePicker does not preserve DateTimeKind

オープン

#3,321 opened on 2021/11/11

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,631 件のフォーク)batch import
bughelp wantedstale

Repository metrics

Stars
 (10,394 個のスター)
PR merge metrics
 (平均マージ 6d 6h) (30d で 108 merged PRs)

説明

Bug type

Component

Component name

MudDatePicker

What happened?

Submitting the right DateTimeKind to the database is mandatory for EF 6 (and PostgreSQL). When using MudDatePicker, the datetime.kind property gets set to unspecified when changing a date.

Example: https://try.mudblazor.com/snippet/muQlbblvQsHVRSCC

Expected behavior

Kind property of the bound datetime should remain the same as it was on start.

Reproduction link

https://try.mudblazor.com/snippet/muQlbblvQsHVRSCC

Reproduction steps

  1. Check the datetime kind property
  2. Change date
  3. Check the datetime kind property ...

Relevant log output

No response

Version (bug)

6.0.2

Version (working)

No response

What browsers are you seeing the problem on?

Firefox, Chrome, Microsoft Edge, Safari, Other

On what operating system are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

コントリビューターガイド