From 037196cd658edcb79c18035d24975ea93db59fe8 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Wed, 1 Jan 2025 09:57:48 +0100 Subject: [PATCH] views: debug: add custom date format for system time display --- application/controllers/Debug.php | 8 ++++++++ application/views/debug/index.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/application/controllers/Debug.php b/application/controllers/Debug.php index 57ec55a31..585a1a556 100644 --- a/application/controllers/Debug.php +++ b/application/controllers/Debug.php @@ -27,6 +27,14 @@ class Debug extends CI_Controller $footerData = []; $footerData['scripts'] = ['assets/js/sections/debug.js']; + // Get Custom Date format + if ($this->session->userdata('user_date_format')) { + $custom_date_format = $this->session->userdata('user_date_format'); + } else { + $custom_date_format = $this->config->item('qso_date_format'); + } + $data['system_time'] = date($custom_date_format . " H:i:s", time()); + $data['running_version'] = $this->optionslib->get_option('version'); $data['latest_release'] = $this->optionslib->get_option('latest_release'); diff --git a/application/views/debug/index.php b/application/views/debug/index.php index 7558914e3..5b379e851 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -66,7 +66,7 @@ - +