From 04d8a679a75ae8d2e14c3623c3cbf93416a9b999 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Thu, 7 Jan 2021 17:51:45 +0100 Subject: [PATCH] fix warning message on install --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 3bf47b7da7a..e8b2e437342 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1975,7 +1975,7 @@ function dol_print_date($time, $format = '', $tzoutput = 'auto', $outputlangs = { global $conf, $langs; - if ($tzoutput == 'auto') { + if ($tzoutput == 'auto' && property_exists($conf,'tzuserinputkey')) { $tzoutput = $conf->tzuserinputkey; }