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:07:12 -0400
commit3ed475b11dfcb2999a71195987495ccf05808127 (patch)
treedf58bc0285537f2267fc5b4f5e756cea1527d7f8
parentf61d6892847f7cb9b6e29881fa62b38a29b3de75 (diff)
downloadpfsense-3ed475b11dfcb2999a71195987495ccf05808127.zip
pfsense-3ed475b11dfcb2999a71195987495ccf05808127.tar.gz
fixed #7795
By changing var name to no longer conflict with ipsec widget
-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 33121f7..2d1c7cd 100644
--- a/src/usr/local/www/widgets/widgets/ntp_status.widget.php
+++ b/src/usr/local/www/widgets/widgets/ntp_status.widget.php
@@ -197,14 +197,14 @@ if ($_REQUEST['updateme']) {
<?php if ($widget_first_instance): ?>
<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