use start as end time if end is not set separately
这个提交包含在:
父节点
f2588ad132
当前提交
d519d88604
共有 1 个文件被更改,包括 5 次插入 和 1 次删除
|
|
@ -8,7 +8,11 @@ class Logbook_model extends CI_Model {
|
|||
$callsign = str_replace('Ø', '0', $this->input->post('callsign'));
|
||||
// Join date+time
|
||||
$datetime = date("Y-m-d",strtotime($this->input->post('start_date')))." ". $this->input->post('start_time');
|
||||
$datetime_off = date("Y-m-d",strtotime($this->input->post('start_date')))." ". $this->input->post('end_time');
|
||||
if ($this->input->post('end_time') != null) {
|
||||
$datetime_off = date("Y-m-d",strtotime($this->input->post('start_date')))." ". $this->input->post('end_time');
|
||||
} else {
|
||||
$datetime_off = $datetime;
|
||||
}
|
||||
if ($this->input->post('prop_mode') != null) {
|
||||
$prop_mode = $this->input->post('prop_mode');
|
||||
} else {
|
||||
|
|
|
|||
正在加载…
在新工单中引用