Skip to content

Commit

Permalink
Fix addTimeOffset: compute hour modulo 24, not 23 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
ablearthy authored Apr 6, 2023
1 parent 5be3771 commit dc3da3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dc3da3a

Please sign in to comment.