From 02cae88a8cd84f2f0231fd3b3f2a28de848ddd03 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 29 Oct 2017 17:50:50 +0100 Subject: [PATCH] Fix date output --- htdocs/core/class/html.formactions.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php index 3cadc82ae21..7db6ec3331a 100644 --- a/htdocs/core/class/html.formactions.class.php +++ b/htdocs/core/class/html.formactions.class.php @@ -249,14 +249,14 @@ class FormActions print $action->type; print ''; print ''.$label.''; - print ''.dol_print_date($action->datep,'dayhour'); + print ''.dol_print_date($action->datep, 'dayhour', 'tzuserrel'); if ($action->datef) { $tmpa=dol_getdate($action->datep); $tmpb=dol_getdate($action->datef); if ($tmpa['mday'] == $tmpb['mday'] && $tmpa['mon'] == $tmpb['mon'] && $tmpa['year'] == $tmpb['year']) { - if ($tmpa['hours'] != $tmpb['hours'] || $tmpa['minutes'] != $tmpb['minutes'] && $tmpa['seconds'] != $tmpb['seconds']) print '-'.dol_print_date($action->datef,'hour'); + if ($tmpa['hours'] != $tmpb['hours'] || $tmpa['minutes'] != $tmpb['minutes'] && $tmpa['seconds'] != $tmpb['seconds']) print '-'.dol_print_date($action->datef, 'hour', 'tzuserrel'); } else print '-'.dol_print_date($action->datef, 'dayhour', 'tzuserrel'); }