mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix issue reported on http://forum.pfsense.org/index.php/topic,66160.0.html
This commit is contained in:
parent
7ca8bef40e
commit
628a64a9e5
@ -104,12 +104,17 @@ function leasecmp($a, $b) {
|
||||
|
||||
function adjust_gmt($dt) {
|
||||
global $config;
|
||||
$dhcpdv6 = $config['dhcpdv6'];
|
||||
foreach ($dhcpdv6 as $dhcpv6leaseinlocaltime) {
|
||||
$dhcpv6leaseinlocaltime = $dhcpv6leaseinlocaltime['dhcpv6leaseinlocaltime'];
|
||||
if ($dhcpv6leaseinlocaltime == "yes")
|
||||
break;
|
||||
|
||||
$dhcpv6leaseinlocaltime == "no";
|
||||
if (is_array($config['dhcpdv6'])) {
|
||||
$dhcpdv6 = $config['dhcpdv6'];
|
||||
foreach ($dhcpdv6 as $dhcpv6leaseinlocaltime) {
|
||||
$dhcpv6leaseinlocaltime = $dhcpv6leaseinlocaltime['dhcpv6leaseinlocaltime'];
|
||||
if ($dhcpv6leaseinlocaltime == "yes")
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$timezone = $config['system']['timezone'];
|
||||
$ts = strtotime($dt . " GMT");
|
||||
if ($dhcpv6leaseinlocaltime == "yes") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user