From 6c82c1ac3c217934e87c504553c9a5e68756e5fd Mon Sep 17 00:00:00 2001 From: Able Arthy <77538776+ablearthy@users.noreply.github.com> Date: Wed, 5 Apr 2023 23:42:31 +0300 Subject: [PATCH] Fix `addTimeOffset`: compute hour modulo 24, not 23 --- dashboard/src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/utils.js b/dashboard/src/utils.js index 9484337..d7e4518 100644 --- a/dashboard/src/utils.js +++ b/dashboard/src/utils.js @@ -64,7 +64,7 @@ export default { const n = parseInt(v); const offSet = new Date().getTimezoneOffset() / 60; - return ((n - offSet) % 23).toString(); + return ((n - offSet) % 24).toString(); }, secondsToHms: function (d) { d = Number(d);