From 2a18cb2a3d1c54d69906a0f88927ee273df223a6 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:00:23 +0100 Subject: [PATCH] Forgot controller change --- application/controllers/Dxcalendar.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/application/controllers/Dxcalendar.php b/application/controllers/Dxcalendar.php index e28ab32a5..1fbb49363 100644 --- a/application/controllers/Dxcalendar.php +++ b/application/controllers/Dxcalendar.php @@ -11,6 +11,17 @@ class Dxcalendar extends CI_Controller { $url = 'http://www.ng3k.com/adxo.xml'; $data['rss'] = simplexml_load_file($url, null, LIBXML_NOCDATA); + // Get Date format + if($this->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'); + } + + $data['custom_date_format'] = $custom_date_format; + $footerData['scripts'] = [ 'assets/js/sections/dxcalendar.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/dxcalendar.js")) ];