diff --git a/Webzine.Business/TitreAdminService.cs b/Webzine.Business/TitreAdminService.cs index e23af11..cca5c48 100644 --- a/Webzine.Business/TitreAdminService.cs +++ b/Webzine.Business/TitreAdminService.cs @@ -57,7 +57,7 @@ public class TitreAdminService : ITitreAdminService Album = commande.Album, Chronique = commande.Chronique, DateCreation = DateTime.UtcNow, - DateSortie = commande.DateSortie, + DateSortie = DateTime.SpecifyKind(commande.DateSortie, DateTimeKind.Utc), Duree = commande.Duree, UrlJaquette = commande.UrlJaquette, UrlEcoute = commande.UrlEcoute ?? string.Empty, @@ -84,7 +84,7 @@ public class TitreAdminService : ITitreAdminService existant.Libelle = commande.Libelle; existant.Album = commande.Album; existant.Chronique = commande.Chronique; - existant.DateSortie = commande.DateSortie; + existant.DateSortie = DateTime.SpecifyKind(commande.DateSortie, DateTimeKind.Utc); existant.Duree = commande.Duree; existant.UrlJaquette = commande.UrlJaquette; existant.UrlEcoute = commande.UrlEcoute ?? string.Empty; diff --git a/Webzine.Repository/DbTitreRepository.cs b/Webzine.Repository/DbTitreRepository.cs index 752e6b1..9e4b22d 100644 --- a/Webzine.Repository/DbTitreRepository.cs +++ b/Webzine.Repository/DbTitreRepository.cs @@ -187,12 +187,14 @@ public class DbTitreRepository : ITitreRepository Titre existingTitre = this.Find(titre.IdTitre); if (existingTitre != null) { + List