From 4a98c08a748fb5fe0430de5c5b10e73c388fc002 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Sep 2012 22:05:13 +0200 Subject: [PATCH] Fix: Use correct date timezone. --- htdocs/core/class/html.formfile.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 07f51ebd72c..ce0a24d6f42 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -479,7 +479,7 @@ class FormFile // Show file date $date=(! empty($file['date'])?$file['date']:dol_filemtime($filedir."/".$file["name"])); - $out.= ''.dol_print_date($date, 'dayhour').''; + $out.= ''.dol_print_date($date, 'dayhour','tzuser').''; if ($delallowed) { @@ -662,7 +662,7 @@ class FormFile print ''; print "\n"; print ''.dol_print_size($file['size'],1,1).''; - print ''.dol_print_date($file['date'],"dayhour").''; + print ''.dol_print_date($file['date'],"dayhour","tzuser").''; // Preview if (empty($useinecm)) {