diff --git a/allianceauth/optimer/templates/optimer/management.html b/allianceauth/optimer/templates/optimer/management.html index db376330..77e9d48d 100644 --- a/allianceauth/optimer/templates/optimer/management.html +++ b/allianceauth/optimer/templates/optimer/management.html @@ -19,7 +19,8 @@
{% trans "Current Eve Time:" %} -
+
+
@@ -111,7 +112,7 @@ } function updateClock() { - document.getElementById("current-time").innerHTML = "" + moment.utc().format('LLLL') + ""; + document.getElementById("current-time").innerHTML = getCurrentEveTimeString(); } {% endblock content %} diff --git a/allianceauth/static/js/timers.js b/allianceauth/static/js/timers.js index 9738f765..0160eb4a 100644 --- a/allianceauth/static/js/timers.js +++ b/allianceauth/static/js/timers.js @@ -8,8 +8,16 @@ function getDurationString(duration) { if (duration.years()) { out += duration.years() + 'y '; } + if (duration.months()) { + out += duration.months() + 'm '; + } if (duration.days()) { out += duration.days() + 'd '; } return out + duration.hours() + "h " + duration.minutes() + "m " + duration.seconds() + "s"; } + + +function getCurrentEveTimeString() { + return moment().utc().format('dddd LL HH:mm:ss') +} diff --git a/allianceauth/templates/bundles/moment-js.html b/allianceauth/templates/bundles/moment-js.html index 5e1e6206..9e2efd38 100644 --- a/allianceauth/templates/bundles/moment-js.html +++ b/allianceauth/templates/bundles/moment-js.html @@ -1,4 +1,4 @@ - + {% if locale and LANGUAGE_CODE != 'en' %} - + {% endif %} diff --git a/allianceauth/timerboard/templates/timerboard/view.html b/allianceauth/timerboard/templates/timerboard/view.html index 3681a23f..20ef563a 100644 --- a/allianceauth/timerboard/templates/timerboard/view.html +++ b/allianceauth/timerboard/templates/timerboard/view.html @@ -18,7 +18,8 @@
{% trans "Current Eve Time:" %} -
+
+ {% if corp_timers %}

{% trans "Corp Timers" %}

@@ -555,7 +556,7 @@ } function updateClock() { - document.getElementById("current-time").innerHTML = "" + moment().format('LLLL') + ""; + document.getElementById("current-time").innerHTML = getCurrentEveTimeString(); } {% endblock content %}