From 90ae9fdf19e63af16c71080057b3bb3ef10df4a3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Apr 2011 09:30:53 +0000 Subject: [PATCH] Use correct hour --- htdocs/core/class/html.form.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index fc5be47322b..ad548af3c2a 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2702,8 +2702,8 @@ class Form if($h == '') $h=0; if($m == '') $m=0; if($empty == '') $empty=0; - - if (! $set_time && $empty == 0) $set_time = time(); + + if (! $set_time && $empty == 0) $set_time = dol_now(); // Analyse de la date de pre-selection if (preg_match('/^([0-9]+)\-([0-9]+)\-([0-9]+)\s?([0-9]+)?:?([0-9]+)?/',$set_time,$reg)) @@ -2845,7 +2845,7 @@ class Form if ($h) { // Show hour - $retstring.=''; + $retstring.=''; if ($empty) $retstring.=''; for ($hour = 0; $hour < 24; $hour++) {