Added absolute Time of last-qso to "worked before" banner
这个提交包含在:
父节点
0748115b4e
当前提交
48838c4365
共有 2 个文件被更改,包括 4 次插入 和 2 次删除
|
|
@ -190,7 +190,9 @@ class Contesting extends CI_Controller {
|
|||
header('Content-Type: application/json');
|
||||
if ($result && $result->num_rows()) {
|
||||
$timeb4=$result->row()->b4;
|
||||
echo json_encode(array('message' => 'Worked '.$timeb4.' before'));
|
||||
$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'));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ class Contesting_model extends CI_Model {
|
|||
$date = DateTime::createFromFormat('d-m-Y H:i:s', $qsoarray[0]);
|
||||
$date = $date->format('Y-m-d H:i:s');
|
||||
|
||||
$this->db->select('timediff(UTC_TIMESTAMP(),col_time_on) b4');
|
||||
$this->db->select('timediff(UTC_TIMESTAMP(),col_time_off) b4, COL_TIME_OFF');
|
||||
$this->db->where('STATION_ID', $station_id);
|
||||
$this->db->where('COL_CALL', xss_clean($call));
|
||||
$this->db->where("COL_BAND", xss_clean($band));
|
||||
|
|
|
|||
正在加载…
在新工单中引用