1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-26 07:44:02 +01:00

Bugfix ore interventi

This commit is contained in:
Thomas Zilio 2018-09-18 18:21:54 +02:00
parent 287c68b935
commit fed810525f

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;
}