fixed PublishDate not displaying time input
This commit is contained in:
parent
97c4e1294e
commit
e2c77a2d0a
|
@ -41,7 +41,7 @@
|
||||||
<div class="label">
|
<div class="label">
|
||||||
<span class="label-text">@Localizer["PublishDate_Label"]</span>
|
<span class="label-text">@Localizer["PublishDate_Label"]</span>
|
||||||
</div>
|
</div>
|
||||||
<InputDate class="input input-bordered w-full" disabled="@CannotEdit"
|
<InputDate class="input input-bordered w-full" disabled="@CannotEdit" Type="InputDateType.DateTimeLocal"
|
||||||
@bind-Value="@Model.PublishDate" placeholder="@Localizer["PublishDate_Placeholder"]" />
|
@bind-Value="@Model.PublishDate" placeholder="@Localizer["PublishDate_Placeholder"]" />
|
||||||
<div class="label">
|
<div class="label">
|
||||||
<span class="label-text-alt text-error">
|
<span class="label-text-alt text-error">
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
Model.Id ??= Article?.Id;
|
Model.Id ??= Article?.Id;
|
||||||
Model.Title ??= Article?.Title;
|
Model.Title ??= Article?.Title;
|
||||||
Model.Body ??= Article?.Body;
|
Model.Body ??= Article?.Body;
|
||||||
Model.PublishDate ??= Article?.PublishDate;
|
Model.PublishDate ??= Article?.PublishDate.LocalDateTime;
|
||||||
|
|
||||||
if (AuthenticationState is null) throw new ApplicationException("???");
|
if (AuthenticationState is null) throw new ApplicationException("???");
|
||||||
var state = await AuthenticationState;
|
var state = await AuthenticationState;
|
||||||
|
|
Loading…
Reference in a new issue