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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 7 deletions

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