Bugfix ore interventi

This commit is contained in:
Thomas Zilio 2018-09-18 18:21:54 +02:00
parent 287c68b935
commit fed810525f
1 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,8 @@ function calcola_ore_intervento($orario_inizio, $orario_fine)
{
$inizio = new DateTime($orario_inizio);
$diff = $inizio->diff(new DateTime($orario_fine));
$ore = $diff->h + ($diff->days * 24);
$ore = $diff->i / 60 + $diff->h + ($diff->days * 24);
return $ore;
}