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

This commit is contained in:
Loic Masi
2026-04-09 12:26:50 +02:00
parent 2559206968
commit 3df32bcf14
2 changed files with 1 additions and 2 deletions

View File

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

View File

@@ -141,7 +141,6 @@ public class TitreController : Controller
return this.View(form);
}
model.DateSortie = DateTime.Parse(model.DateSortie.ToString());
this.titreAdminService.CreerTitre(model);
return this.RedirectToAction("Index");
}