#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,
|
Album = commande.Album,
|
||||||
Chronique = commande.Chronique,
|
Chronique = commande.Chronique,
|
||||||
DateCreation = DateTime.UtcNow,
|
DateCreation = DateTime.UtcNow,
|
||||||
DateSortie = commande.DateSortie,
|
DateSortie = DateTime.Parse(commande.DateSortie.ToString()),
|
||||||
Duree = commande.Duree,
|
Duree = commande.Duree,
|
||||||
UrlJaquette = commande.UrlJaquette,
|
UrlJaquette = commande.UrlJaquette,
|
||||||
UrlEcoute = commande.UrlEcoute ?? string.Empty,
|
UrlEcoute = commande.UrlEcoute ?? string.Empty,
|
||||||
|
|||||||
@@ -141,7 +141,6 @@ public class TitreController : Controller
|
|||||||
return this.View(form);
|
return this.View(form);
|
||||||
}
|
}
|
||||||
|
|
||||||
model.DateSortie = DateTime.Parse(model.DateSortie.ToString());
|
|
||||||
this.titreAdminService.CreerTitre(model);
|
this.titreAdminService.CreerTitre(model);
|
||||||
return this.RedirectToAction("Index");
|
return this.RedirectToAction("Index");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user