From 088018da98da72cd3db5c4d8e1e35ab03ba1488f Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 16 Oct 2023 10:16:23 +0200 Subject: [PATCH] We should not take seconds into account when checking dupes --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 23787e0a..c0b3f684 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3229,7 +3229,7 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray = if (isset($record['call'])){ $this->db->where('COL_CALL', $record['call']); } - $this->db->where('COL_TIME_ON', $time_on); + $this->db->where("DATE_FORMAT(COL_TIME_ON, '%Y-%m-%d %H:%i') = DATE_FORMAT(\"".$time_on."\", '%Y-%m-%d %H:%i')"); $this->db->where('COL_BAND', $band); $this->db->where('COL_MODE', $input_mode); $this->db->where('station_id', $station_id);