From a002ceb4f125709cc5f0f3e8de8e9f1de8ba31de Mon Sep 17 00:00:00 2001
From: Armand Bahi <armand.bahi@veremes.com>
Date: Mon, 3 Dec 2018 12:16:20 +0100
Subject: [PATCH] =?UTF-8?q?Valeur=20par=20d=C3=A9faut=20pour=20timezone=5F?=
 =?UTF-8?q?id?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 vas/rest/ws/vitis/Users.class.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vas/rest/ws/vitis/Users.class.inc b/vas/rest/ws/vitis/Users.class.inc
index fa87387f..8aa4e1fe 100755
--- a/vas/rest/ws/vitis/Users.class.inc
+++ b/vas/rest/ws/vitis/Users.class.inc
@@ -249,8 +249,10 @@ class Users extends Vitis {
             }
             // verify if the user is vitis_admin
             else if (in_array("vitis_admin", $this->oConnection->aPrivileges)) {
-                // Changement de mot de passe ?
                 require_once $this->sRessourcesFile;
+                if (empty($this->aValues["timezone_id"])) {
+                    $this->aValues["timezone_id"] = "Europe/Paris";
+                }
                 $this->aValues["login"] = mb_strtolower($this->aValues["login"], 'UTF-8');
                 $this->aValues["login"] = str_replace(array('à', 'â', 'ä', 'á', 'ã', 'å', 'î', 'ï', 'ì', 'í', 'ô', 'ö', 'ò', 'ó', 'õ', 'ø', 'ù', 'û', 'ü', 'ú', 'é', 'è', 'ê', 'ë', 'ç', 'ÿ', 'ñ'), array('a', 'a', 'a', 'a', 'a', 'a', 'i', 'i', 'i', 'i', 'o', 'o', 'o', 'o', 'o', 'o', 'u', 'u', 'u', 'u', 'e', 'e', 'e', 'e', 'c', 'y', 'n',), $this->aValues["login"]);
                 $aParams['sSchemaFramework'] = array('value' => $this->aProperties['schema_framework'], 'type' => 'schema_name');
-- 
GitLab