diff --git a/src/www/status_dhcpv6_leases.php b/src/www/status_dhcpv6_leases.php index 6ca37ea07..3e030266b 100644 --- a/src/www/status_dhcpv6_leases.php +++ b/src/www/status_dhcpv6_leases.php @@ -50,11 +50,11 @@ function adjust_gmt($dt) $timezone = $config['system']['timezone']; $ts = strtotime($dt . " GMT"); - if ($dhcpv6leaseinlocaltime == "yes") { + if ($dhcpv6leaseinlocaltime != "yes") { $this_tz = new DateTimeZone($timezone); $dhcp_lt = new DateTime(strftime("%I:%M:%S%p", $ts), $this_tz); $offset = $this_tz->getOffset($dhcp_lt); - $ts = $ts + $offset; + $ts = $ts - $offset; return strftime("%Y/%m/%d %I:%M:%S%p", $ts); } else { return strftime("%Y/%m/%d %H:%M:%S", $ts);