Skip to content

Commit

Permalink
fix: fix first date lost time issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 5, 2021
1 parent 8db1d87 commit 6614c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/public/js/time-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function commit_to_hour_date(data) {
for (let datum of data) {
let date = new Date(datum.date * 1000);
let day = date.getDay() + 1;
let hour = date.getHours();
let hour = date.getHours() + 1;

if (dateMap[day][hour] === undefined) {
let day_hours = 24;
Expand Down

0 comments on commit 6614c0f

Please sign in to comment.