From 0f57e62a848bec51789c75e63ba1a5470b467576 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 28 Sep 2021 16:09:47 +0100 Subject: [PATCH] Revert "Correct user date formating on QSO pages (Live/Post)" This reverts commit 77a99780cb1ca832e5240ecd52a64c939f5d3037. --- application/views/interface_assets/footer.php | 27 +----------------- application/views/qso/index.php | 28 ++++++++----------- 2 files changed, 13 insertions(+), 42 deletions(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 3393b591..bcece900 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -498,35 +498,10 @@ $(document).on('keypress',function(e) { $('.input_time').jclock(options); }); - var fmt = "session->userdata('user_date_format')) { - // If Logged in and session exists - $custom_date_format = $this->session->userdata('user_date_format'); - } else { - // Get Default date format from /config/cloudlog.php - $custom_date_format = $this->config->item('qso_date_format'); - } - // php format string - $find = array('d', // Day of month (2 digit) - 'm', // Numeric month (2 digit) - 'M', // Month abbreviation (3 char) - 'Y', // Year (4 digit) - 'y'); // Year (2 digit) - // jclock format string - $replace = array('%d', // Day of month (2 digit) - '%m', // Numeric month (2 digit) - '%b', // Month abbreviation (3 char) - '%Y', // Year (4 digit) - '%y'); // Year (2 digit) - echo str_replace($find, $replace, $custom_date_format) - ?>" - $(function($) { var options = { utc: true, - format: fmt + format: '%d-%m-%Y' } $('.input_date').jclock(options); }); diff --git a/application/views/qso/index.php b/application/views/qso/index.php index 420ea7cf..3a2fa808 100755 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -35,19 +35,6 @@ - session->userdata('user_date_format')) { - // If Logged in and session exists - $custom_date_format = $this->session->userdata('user_date_format'); - } else { - // Get Default date format from /config/cloudlog.php - $custom_date_format = $this->config->item('qso_date_format'); - } - - ?> -
@@ -55,7 +42,7 @@
- > + >
@@ -64,7 +51,7 @@
- +
@@ -526,7 +513,16 @@ lang->line('gen_hamradio_band'); ?> - session->userdata('user_date_format')) { + // If Logged in and session exists + $custom_date_format = $this->session->userdata('user_date_format'); + } else { + // Get Default date format from /config/cloudlog.php + $custom_date_format = $this->config->item('qso_date_format'); + } $i = 0; foreach ($query->result() as $row) {