mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 18:24:25 +00:00
not formatting is needed
This commit is contained in:
parent
fdb1462722
commit
b643a8c3c4
@ -1840,20 +1840,15 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray =
|
|||||||
$this->db->where('COL_PROP_MODE = ' . $propagation);
|
$this->db->where('COL_PROP_MODE = ' . $propagation);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If date is set, we format the date and add it to the where-statement
|
// If date is set, we add it to the where-statement
|
||||||
if ($fromdate != "") {
|
if ($fromdate != "") {
|
||||||
$from = DateTime::createFromFormat('d/m/Y', $fromdate);
|
$this->db->where("date(".$this->config->item('table_name').".COL_TIME_ON) >= '".$fromdate."'");
|
||||||
$from = $from->format('Y-m-d');
|
|
||||||
$this->db->where("date(".$this->config->item('table_name').".COL_TIME_ON) >= '".$from."'");
|
|
||||||
}
|
}
|
||||||
if ($todate != "") {
|
if ($todate != "") {
|
||||||
$to = DateTime::createFromFormat('d/m/Y', $todate);
|
$this->db->where("date(".$this->config->item('table_name').".COL_TIME_ON) <= '".$todate."'");
|
||||||
$to = $to->format('Y-m-d');
|
|
||||||
$this->db->where("date(".$this->config->item('table_name').".COL_TIME_ON) <= '".$to."'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = $this->db->get($this->config->item('table_name'));
|
$query = $this->db->get($this->config->item('table_name'));
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user