From 84b36a3d43268481999a9172d4513381c0d473c0 Mon Sep 17 00:00:00 2001 From: coax Date: Mon, 21 Oct 2024 14:59:03 +0200 Subject: [PATCH] v1.8 --- README.md | 4 ++-- hMailAdmin/hm_account.php | 2 +- hMailAdmin/hm_dmarcreports.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5546bc4..cdf2cc2 100644 --- a/README.md +++ b/README.md @@ -58,10 +58,10 @@ Common issues: https://www.hmailserver.com/documentation/latest/?page=ts_setup_p Changelog ----- -Version 1.8 (2024-10-22) +Version 1.8 (2024-10-21) - [fix] date formatting on different locales - [tweak] added Translate() into PrintPropertyRow function -- [new] Check for and prevent too many failed login attempts +- [new] check for and prevent too many failed login attempts - [new] added TLS reports from @kimboslice99 - [fix] Check syntax and Reload scripts didn't work - [tweak] hides DMARC and/or TLS reports from navigation if not enabled in config.php diff --git a/hMailAdmin/hm_account.php b/hMailAdmin/hm_account.php index c1605a6..a96d1cd 100644 --- a/hMailAdmin/hm_account.php +++ b/hMailAdmin/hm_account.php @@ -129,7 +129,7 @@ // Convert string to Unix time $unixTime = strtotime($AccountLastLogonTime); // Pass the new date format as a string and the original date in Unix time - $AccountLastLogonTime = date("d.m.Y H:i:s", $unixTime); + $AccountLastLogonTime = date('Y-m-d H:i:s', $unixTime); PrintPropertyRow("Last logon time", $AccountLastLogonTime); } diff --git a/hMailAdmin/hm_dmarcreports.php b/hMailAdmin/hm_dmarcreports.php index 964d0e4..273590a 100644 --- a/hMailAdmin/hm_dmarcreports.php +++ b/hMailAdmin/hm_dmarcreports.php @@ -279,7 +279,7 @@ function parse($files) { $report_id = $report['id']; $report_name = $report['domain'] . ' – ' . $report['org']; $report_unixtime = $report['date_begin']; - $report_date = date('d.m.Y H:i:s', $report_unixtime); + $report_date = date('Y-m-d H:i:s', $report_unixtime); ?> @@ -304,7 +304,7 @@ function parse($files) { - - + -