From 0ec8c151a5b2eecfc407daaa51fe1828fc277f08 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 13 Jun 2025 17:30:24 -0600 Subject: [PATCH] Fix the recordings date --- app/recordings/recordings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/recordings/recordings.php b/app/recordings/recordings.php index 0a8f68b13b..2f8ecbae9b 100644 --- a/app/recordings/recordings.php +++ b/app/recordings/recordings.php @@ -355,8 +355,9 @@ //get the recordings from the database $sql = "select recording_uuid, domain_uuid, "; if (!empty($sql_file_size)) { $sql .= $sql_file_size; } - $sql .= "to_char(timezone(:time_zone, update_date), 'DD Mon YYYY') as date_formatted, \n"; - $sql .= "to_char(timezone(:time_zone, update_date), '".$sql_time_format."') as time_formatted, \n"; + $sql .= "to_char(timezone(:time_zone, COALESCE(update_date, insert_date)), 'DD Mon YYYY') as date_formatted, \n"; + $sql .= "to_char(timezone(:time_zone, COALESCE(update_date, insert_date)), '".$sql_time_format."') as time_formatted, \n"; + $sql .= "recording_name, recording_filename, recording_description "; $sql .= "from v_recordings "; $sql .= "where true "; @@ -714,4 +715,3 @@ } ?> -