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

Fix: Format duration function was wrong with some TZ.

parent f26ecda0
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=dol_print_date($iSecond,'%H',true); $sTime=date("H",$iSecond);
} }
else if ($format == 'min') else if ($format == 'min')
{ {
$sTime=dol_print_date($iSecond,'%M',true); $sTime=date("i",$iSecond);
} }
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