Merge branch 'improve_menu_bar' into 'v2.9.x'

Remove seconds from eve clock in menu bar

See merge request allianceauth/allianceauth!1365
This commit is contained in:
Ariel Rin 2021-11-20 01:26:24 +00:00
commit e3e6ebe953

View File

@ -23,7 +23,6 @@ $(document).ready(function () {
let today = new Date();
let h = today.getUTCHours();
let m = today.getUTCMinutes();
let s = today.getUTCSeconds();
h = h + utcOffset;
@ -37,10 +36,8 @@ $(document).ready(function () {
h = checkTime(h);
m = checkTime(m);
s = checkTime(s);
// document.getElementById('clock').innerHTML = h + ":" + m + ":" + s;
element.html(h + ':' + m + ':' + s);
element.html(h + ':' + m);
setTimeout(function () {
renderClock(element, 0);