summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_dhcpv6_leases.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-07-26 14:28:24 +0930
committerStephen Beaver <sbeaver@netgate.com>2016-08-03 07:53:45 -0400
commit4e5477eace9aa5f00c53ff62ca3e35e38177bb09 (patch)
treeff994eaeee37bb0debf2490be87b634428835b6f /src/usr/local/www/status_dhcpv6_leases.php
parent4de9a6fa8e798446da96424d2db7530c863d2370 (diff)
downloadpfsense-4e5477eace9aa5f00c53ff62ca3e35e38177bb09.zip
pfsense-4e5477eace9aa5f00c53ff62ca3e35e38177bb09.tar.gz
Display local DHCP lease times in 24-hour clock
It seems odd to me that when the times are displayed in UTC they have 24-hour clock, but when displayed in local time they are formatted with 12-our clock and AM/PM. 24-hour format takes less screen space, and I would have thought that network admins would prefer working consistently in 24-hour clock format. (cherry picked from commit ede534659ca54d2268ce51ec2f9e15f77051a60c)
Diffstat (limited to 'src/usr/local/www/status_dhcpv6_leases.php')
-rw-r--r--src/usr/local/www/status_dhcpv6_leases.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/status_dhcpv6_leases.php b/src/usr/local/www/status_dhcpv6_leases.php
index a8b644a..2859ba6 100644
--- a/src/usr/local/www/status_dhcpv6_leases.php
+++ b/src/usr/local/www/status_dhcpv6_leases.php
@@ -132,7 +132,7 @@ function adjust_gmt($dt) {
if ($dhcpv6leaseinlocaltime == "yes") {
$ts = strtotime($dt . " GMT");
if ($ts !== false) {
- return strftime("%Y/%m/%d %I:%M:%S%p", $ts);
+ return strftime("%Y/%m/%d %H:%M:%S", $ts);
}
}
/* If we did not need to convert to local time or the conversion failed, just return the input. */
OpenPOWER on IntegriCloud