Skip to content

Node.js based forum software built for the modern web

fixes #5606 :rage2:

Julian Lam3e6d51fc5a7c
diff --git a/public/src/admin/general/dashboard.js b/public/src/admin/general/dashboard.js
index 054ed54e51..6b544ae29c 100644
--- a/public/src/admin/general/dashboard.js
+++ b/public/src/admin/general/dashboard.js
@@ -297,7 +297,9 @@ define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (s
$('[data-action="updateGraph"]:not([data-units="custom"])').on('click', function () {
var until = new Date();
var amount = $(this).attr('data-amount');
- until.setHours(0, 0, 0, 0);
+ if ($(this).attr('data-units') === 'days') {
+ until.setHours(0, 0, 0, 0);
+ }
until = until.getTime();
updateTrafficGraph($(this).attr('data-units'), until, amount);
$('[data-action="updateGraph"]').removeClass('active');