Added "ago" to the relative Time, truncated seconds
这个提交包含在:
父节点
48838c4365
当前提交
88cf148055
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -189,10 +189,10 @@ class Contesting extends CI_Controller {
|
|||
|
||||
header('Content-Type: application/json');
|
||||
if ($result && $result->num_rows()) {
|
||||
$timeb4=$result->row()->b4;
|
||||
$timeb4=substr($result->row()->b4,0,5);
|
||||
$custom_date_format = $this->session->userdata('user_date_format');
|
||||
$abstimeb4=date($custom_date_format, strtotime($result->row()->COL_TIME_OFF)).' '.date('H:i',strtotime($result->row()->COL_TIME_OFF));
|
||||
echo json_encode(array('message' => 'Worked at '.$abstimeb4.' ('.$timeb4.') before'));
|
||||
echo json_encode(array('message' => 'Worked at '.$abstimeb4.' ('.$timeb4.' ago) before'));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
正在加载…
在新工单中引用