Browse Source

Fixes corruption of commiterDate

main
Eric Amodio 4 years ago
parent
commit
00a4326dcf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/views/nodes/helpers.ts

+ 1
- 1
src/views/nodes/helpers.ts View File

@ -34,7 +34,7 @@ export function* insertDateMarkers
time = date.setDate(date.getDate() - daysAgo);
}
const date = new Date(node.commit.committerDate.setUTCHours(0, 0, 0, 0)).getTime();
const date = new Date(node.commit.committerDate).setUTCHours(0, 0, 0, 0);
if (date <= time) {
while (index < markers.length - 1) {
[daysAgo] = markers[index + 1];

Loading…
Cancel
Save