From c5f6bb0cab5dd3b38d1d74ec1a666c82a71929d6 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 27 Oct 2023 10:14:42 +0200 Subject: [PATCH] Hide end time if only differs in seconds as we only display minutes anyway ... --- application/views/view_log/qso.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/view_log/qso.php b/application/views/view_log/qso.php index 097ecedf..03f0499b 100644 --- a/application/views/view_log/qso.php +++ b/application/views/view_log/qso.php @@ -70,8 +70,8 @@ config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?> - COL_TIME_ON); echo date($custom_date_format, $timestamp); $timestamp = strtotime($row->COL_TIME_ON); echo " at ".date('H:i', $timestamp); ?> - COL_TIME_ON != $row->COL_TIME_OFF) { $timestamp = strtotime($row->COL_TIME_OFF); echo " - ".date('H:i', $timestamp); } ?> + COL_TIME_ON); echo date($custom_date_format, $timestamp); $timestamp = strtotime($row->COL_TIME_ON); $time_on = date('H:i', $timestamp); echo " at ".$time_on; ?> + COL_TIME_OFF); $time_off = date('H:i', $timestamp); if ($time_on != $time_off) { echo " - ".$time_off; } ?> COL_TIME_ON); echo date($custom_date_format, $timestamp); ?>