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.
This commit is contained in:
emaktech
2019-02-04 19:22:40 -05:00
committed by FusionPBX
parent b6851e76cf
commit 966844d558

View File

@@ -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 " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".date("F d Y H:i:s", strtotime(escape($row['fax_date'])))."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$fax_date."&nbsp;</td>\n";
echo " <td style='width: 25px;' class='list_control_icons'>";
if (permission_exists('fax_file_delete')) {
echo "<a href='fax_file_delete.php?id=".escape($row['fax_file_uuid'])."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";