Skip to content

Commit dc3da3a

Browse files
authored
Fix addTimeOffset: compute hour modulo 24, not 23 (#74)
1 parent 5be3771 commit dc3da3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard/src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
const n = parseInt(v);
6565
const offSet = new Date().getTimezoneOffset() / 60;
6666

67-
return ((n - offSet) % 23).toString();
67+
return ((n - offSet) % 24).toString();
6868
},
6969
secondsToHms: function (d) {
7070
d = Number(d);

0 commit comments

Comments
 (0)