mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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 ede534659c)
This commit is contained in:
parent
4de9a6fa8e
commit
4e5477eace
@ -124,7 +124,7 @@ function adjust_gmt($dt) {
|
||||
if ($dhcpleaseinlocaltime == "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. */
|
||||
|
||||
@ -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. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user