From cac020c4ea70a6a6cff836ff2cf62e561c3bbd67 Mon Sep 17 00:00:00 2001 From: AndreasK79 Date: Thu, 4 Jun 2020 22:29:20 +0200 Subject: [PATCH] Resets date and time on post qso if the saved date and time was set for more than 24 hours ago. --- application/controllers/Qso.php | 1 + application/views/qso/index.php | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index 483f5d48..846e5741 100755 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -57,6 +57,7 @@ class QSO extends CI_Controller { $qso_data = array( 'start_date' => $this->input->post('start_date'), 'start_time' => $this->input->post('start_time'), + 'time_stamp' => time(), 'band' => $this->input->post('band'), 'freq' => $this->input->post('freq_display'), 'freq_rx' => $this->input->post('freq_display_rx'), diff --git a/application/views/qso/index.php b/application/views/qso/index.php index 3d265717..874a532d 100755 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -38,12 +38,28 @@
- > + >
- > + >