diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-08-22 08:06:22 -0400 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-08-22 08:14:52 -0400 |
commit | 89c32bf21225c20f5237d75cfced3ede733c8104 (patch) | |
tree | 409767c50e6573a758df40b082c12eb13901a1c2 /src/usr/local/www/widgets | |
parent | d5ff0eb13ba46310c203733a3ea3fb2ce7ce529e (diff) | |
download | pfsense-89c32bf21225c20f5237d75cfced3ede733c8104.zip pfsense-89c32bf21225c20f5237d75cfced3ede733c8104.tar.gz |
fixed #7795
By changing var name to no longer conflict with ipsec widget
(cherry picked from commit 3ed475b11dfcb2999a71195987495ccf05808127)
(cherry picked from commit bc2772c18ef2aa9a32b941fcf79c0c160fad7666)
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/ntp_status.widget.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/www/widgets/widgets/ntp_status.widget.php b/src/usr/local/www/widgets/widgets/ntp_status.widget.php index 54c1e08..5585b92 100644 --- a/src/usr/local/www/widgets/widgets/ntp_status.widget.php +++ b/src/usr/local/www/widgets/widgets/ntp_status.widget.php @@ -229,14 +229,14 @@ if ($_REQUEST['updateme']) { <script type="text/javascript"> //<![CDATA[ -var d = new Date('<?=date_format(date_create(), 'c')?>'); +var ntp_d = new Date('<?=date_format(date_create(), 'c')?>'); var tz = '<?=date('T');?>'; setInterval(function() { - d.setSeconds(d.getSeconds() + 1); - var thisSecond = d.getSeconds(); - var thisMinute = d.getMinutes(); - var thisHour = d.getHours(); + ntp_d.setSeconds(ntp_d.getSeconds() + 1); + var thisSecond = ntp_d.getSeconds(); + var thisMinute = ntp_d.getMinutes(); + var thisHour = ntp_d.getHours(); // Add leading zeros to minutes and seconds as required thisMinute = thisMinute < 10 ? "0" + thisMinute : thisMinute; |