From 966844d55862d1448b907f9672c97a56b66be1ea Mon Sep 17 00:00:00 2001 From: emaktech Date: Mon, 4 Feb 2019 19:22:40 -0500 Subject: [PATCH] Show fax file date in user's timezone (#3999) Previously timezone was showing in GMT, this now shows fax time in user's timezone. Code to display timezone was copied from fax_logs.php page. --- app/fax/fax_files.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/fax/fax_files.php b/app/fax/fax_files.php index 23b982d5c0..7b5f984abf 100644 --- a/app/fax/fax_files.php +++ b/app/fax/fax_files.php @@ -367,8 +367,10 @@ else { echo " \n"; } + $fax_date = ($_SESSION['domain']['time_format']['text'] == '12h') ? date("F d Y H:i", $row['fax_epoch']) : date("F d Y H:i", $row['fax_epoch']); + echo " \n"; - echo " ".date("F d Y H:i:s", strtotime(escape($row['fax_date'])))." \n"; + echo " ".$fax_date." \n"; echo " "; if (permission_exists('fax_file_delete')) { echo "$v_link_label_delete";