Skip to content

Commit

Permalink
strftime() is deprecated - use date() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonb3 committed Feb 1, 2024
1 parent 4613f30 commit 65afa0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions bubba-frontend/admin/views/default/sideboard_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
<div id="sideboard-clock-digital" class="jclock"></div>

<div id="sideboard-datetime">
<div id="sideboard-datetime-date"><?=strftime("%d")?></div>
<div id="sideboard-datetime-day"><?=strftime("%A")?></div>
<div id="sideboard-datetime-month"><?=strftime("%B")?></div>
<div id="sideboard-datetime-year"><?=strftime("%Y")?></div>
<div id="sideboard-datetime-date"><?=date('d')?></div>
<div id="sideboard-datetime-day"><?=date('l')?></div>
<div id="sideboard-datetime-month"><?=date('F')?></div>
<div id="sideboard-datetime-year"><?=date('Y')?></div>
</div>
</div>

2 changes: 1 addition & 1 deletion contrib/dhcpcd_hook_scripts/bubba-fqdn.hook
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fix_fqdn_dynamic_host()
if [ "x${new_ip_address}" != "x" ]; then
echo "bubba-fqdn: update dynamic hosts entry for my name"
local old_hostentry=$(grep "^${new_ip_address}\s" /etc/hosts)
local new_hostnames"${new_fqdn_name}\t${my_hostname}"
local new_hostnames="${new_fqdn_name}\t${my_hostname}"
if [ "x${old_hostentry}" != "x" ]; then
#keep alternate names if defined
local needle=$(echo "^${new_ip_address}\$|${my_hostname}\$|${old_fqdn_name}\$|${new_fqdn_name}\$|localhost|^\$"| sed "s/\./\\\./g")
Expand Down

0 comments on commit 65afa0d

Please sign in to comment.