mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix the duration using the created_epoch
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user