#199 : changement du format de date pour postgresql. 2.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user