From 22940c814553a2f9c3e9aa99bf6ca69d49a73ca7 Mon Sep 17 00:00:00 2001 From: Loic Masi Date: Wed, 8 Apr 2026 20:50:37 +0200 Subject: [PATCH] #199 : Nouveau test. --- Webzine.WebApplication/Controllers/TitreController.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Webzine.WebApplication/Controllers/TitreController.cs b/Webzine.WebApplication/Controllers/TitreController.cs index e4e8d67..9aefe66 100644 --- a/Webzine.WebApplication/Controllers/TitreController.cs +++ b/Webzine.WebApplication/Controllers/TitreController.cs @@ -123,15 +123,11 @@ namespace Webzine.WebApplication.Controllers if (titreToUpdate != null) { - var utcNow = DateTime.UtcNow; - var timeZone = TimeZoneInfo.FindSystemTimeZoneById("Europe/Paris"); - var localTime = TimeZoneInfo.ConvertTimeFromUtc(utcNow, timeZone); - var commentaire = new Commentaire { Auteur = model.Auteur, Contenu = model.Contenu, - DateCreation = localTime, + DateCreation = DateTime.UtcNow, IdTitre = model.IdTitre, };