Update Radio.php
这个提交包含在:
父节点
0f9ac6a621
当前提交
6f0a02ab6e
共有 1 个文件被更改,包括 5 次插入 和 0 次删除
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
class Radio extends CI_Controller {
|
class Radio extends CI_Controller {
|
||||||
|
|
||||||
|
|
||||||
|
public function test() {
|
||||||
|
echo gmdate("Y-m-d H:i:s");
|
||||||
|
}
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
// Check Auth
|
// Check Auth
|
||||||
|
|
@ -139,6 +143,7 @@
|
||||||
|
|
||||||
// Calculate how old the data is in minutes
|
// Calculate how old the data is in minutes
|
||||||
$datetime1 = new DateTime("now", new DateTimeZone('UTC')); // Today's Date/Time
|
$datetime1 = new DateTime("now", new DateTimeZone('UTC')); // Today's Date/Time
|
||||||
|
echo datetime1;
|
||||||
$datetime2 = new DateTime($row->timestamp, new DateTimeZone('UTC'));
|
$datetime2 = new DateTime($row->timestamp, new DateTimeZone('UTC'));
|
||||||
$interval = $datetime1->diff($datetime2);
|
$interval = $datetime1->diff($datetime2);
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用