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 @@ } ?> -