#199 : changement du format de date pour postgresql. 5.

This commit is contained in:
Loic Masi
2026-04-09 12:59:32 +02:00
parent 237798890b
commit 616f1ebcc0
2 changed files with 6 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ public class TitreAdminService : ITitreAdminService
Album = commande.Album, Album = commande.Album,
Chronique = commande.Chronique, Chronique = commande.Chronique,
DateCreation = DateTime.UtcNow, DateCreation = DateTime.UtcNow,
DateSortie = DateTime.SpecifyKind(commande.DateSortie, DateTimeKind.Utc), DateSortie = commande.DateSortie,
Duree = commande.Duree, Duree = commande.Duree,
UrlJaquette = commande.UrlJaquette, UrlJaquette = commande.UrlJaquette,
UrlEcoute = commande.UrlEcoute ?? string.Empty, UrlEcoute = commande.UrlEcoute ?? string.Empty,

View File

@@ -45,13 +45,12 @@
<!-- DATE + DUREE --> <!-- DATE + DUREE -->
<div class="row mb-3 align-items-center"> <div class="row mb-3 align-items-center">
<label class="col-md-3 col-form-label">Date de sortie<span class="text-danger">*</span></label> <label class="col-md-3 col-form-label">
Date de sortie<span class="text-danger">*</span>
</label>
<div class="col-md-3"> <div class="col-md-3">
<input type="text" <input asp-for="DateSortie" type="date" class="form-control" />
class="form-control" <span asp-validation-for="DateSortie" class="text-danger"></span>
name="DateSortie"
pattern="\d{2}/\d{2}/\d{4}"
value="@Model.DateSortie.ToString("d")"/>
</div> </div>
<label class="col-md-3 col-form-label">Durée en secondes<span class="text-danger">*</span></label> <label class="col-md-3 col-form-label">Durée en secondes<span class="text-danger">*</span></label>