Update Radio.php

这个提交包含在:
Peter Goodhall 2022-08-01 11:31:36 +01:00
父节点 0f9ac6a621
当前提交 6f0a02ab6e

查看文件

@ -2,6 +2,10 @@
class Radio extends CI_Controller {
public function test() {
echo gmdate("Y-m-d H:i:s");
}
public function index()
{
// Check Auth
@ -139,6 +143,7 @@
// Calculate how old the data is in minutes
$datetime1 = new DateTime("now", new DateTimeZone('UTC')); // Today's Date/Time
echo datetime1;
$datetime2 = new DateTime($row->timestamp, new DateTimeZone('UTC'));
$interval = $datetime1->diff($datetime2);