Skip to content
Snippets Groups Projects
Commit 2637b307 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Format duration function was wrong with some TZ.

parent 060e18d7
No related branches found
No related tags found
No related merge requests found
...@@ -74,11 +74,11 @@ function ConvertSecondToTime($iSecond,$format='all',$lengthOfDay=86400) ...@@ -74,11 +74,11 @@ function ConvertSecondToTime($iSecond,$format='all',$lengthOfDay=86400)
} }
else if ($format == 'hour') else if ($format == 'hour')
{ {
$sTime=date("H",$iSecond); $sTime=dol_print_date($iSecond,'%H',true);
} }
else if ($format == 'min') else if ($format == 'min')
{ {
$sTime=date("i",$iSecond); $sTime=dol_print_date($iSecond,'%m',true);
} }
return $sTime; return $sTime;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment