summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-08-22 08:06:22 -0400
committerSteve Beaver <sbeaver@netgate.com>2017-08-22 08:14:52 -0400
commit89c32bf21225c20f5237d75cfced3ede733c8104 (patch)
tree409767c50e6573a758df40b082c12eb13901a1c2
parentd5ff0eb13ba46310c203733a3ea3fb2ce7ce529e (diff)
downloadpfsense-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)
-rw-r--r--src/usr/local/www/widgets/widgets/ntp_status.widget.php10
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;
OpenPOWER on IntegriCloud