From d499a9f053fbc41cdeef22cefd50c5f67639c709 Mon Sep 17 00:00:00 2001
From: Thibault Dockx <thibault.dockx@fusiondirectory.org>
Date: Tue, 9 Apr 2024 11:52:31 +0100
Subject: [PATCH] :sparkles: (Tasks) - Remove UTC gmDate

Replace gmDate to Date to harmonize time logic with tasks and orchestrator.
---
 plugins/configuration/tasks/class_tasks.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/configuration/tasks/class_tasks.inc b/plugins/configuration/tasks/class_tasks.inc
index 60db8be34..570244d25 100644
--- a/plugins/configuration/tasks/class_tasks.inc
+++ b/plugins/configuration/tasks/class_tasks.inc
@@ -112,7 +112,7 @@ class tasks extends simplePlugin
   {
     // Verification if the bool of activation is ticked and activate the last exec accordingly.
     if ($this->fdSubTasksActivation === TRUE) {
-      $currentDateTime       = gmdate("Y-m-d h:i:sa", time());
+      $currentDateTime       = date("Y-m-d h:i:sa", time());
       $this->fdTasksLastExec = $currentDateTime;
     }
     return parent::save();
-- 
GitLab