Fix the duration using the created_epoch

This commit is contained in:
FusionPBX
2024-12-26 10:58:59 -07:00
committed by GitHub
parent 303935b9d2
commit 3940fb8219

View File

@@ -230,14 +230,8 @@
}
}
//convert $created to a UNIX timestamp
$created_timestamp = strtotime($created);
//get the current timestamp
$now = time();
//calculate elapsed seconds
$elapsed_seconds = $now - $created_timestamp;
$elapsed_seconds = time() - $created_epoch;
//convert seconds to hours, minutes, and seconds
$hours = floor($elapsed_seconds / 3600);