mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-22 00:07:14 +00:00
CAT Timeout: Handle timeout over multiple days better
This commit is contained in:
parent
45f6c3d6a0
commit
618194ff34
@ -123,7 +123,12 @@
|
||||
$datetime1 = new DateTime(); // Today's Date/Time
|
||||
$datetime2 = new DateTime($row->newtime);
|
||||
$interval = $datetime1->diff($datetime2);
|
||||
$updated_at = $interval->format('%i');
|
||||
|
||||
$minutes = $interval->days * 24 * 60;
|
||||
$minutes += $interval->h * 60;
|
||||
$minutes += $interval->i;
|
||||
|
||||
$updated_at = $minutes;
|
||||
|
||||
// Return Json data
|
||||
echo json_encode(array(
|
||||
|
Loading…
Reference in New Issue
Block a user