We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad39a7d commit 6017647Copy full SHA for 6017647
1 file changed
panel/src/pages/PlayerDropsPage/TimelineCard.tsx
@@ -38,12 +38,14 @@ const TimelineCard = memo(({
38
const endDate = new Date(dataTs);
39
if (displayLod === 'day') {
40
// 14d window, 12h+15m padding start
41
- startDate.setHours(-(14 * 24) - 12, -15, 0, 0);
+ const chartDurationHours = (14 - 1) * 24; //minus 1 day
42
+ startDate.setHours(-chartDurationHours - 12, 0, 0, 0);
43
endDate.setHours(12, 0, 0, 0);
44
} else {
45
// 7d window, 30m+15m padding start
- startDate.setHours(startDate.getHours() - 7 * 24, -45, 0, 0);
46
- endDate.setMinutes(30, 0, 0);
+ const chartDurationHours = (7 * 24) + 1; //plus 1 hour
47
+ startDate.setHours(startDate.getHours() - chartDurationHours, 15, 0, 0);
48
+ endDate.setMinutes(endDate.getMinutes() + 30, 0, 0);
49
}
50
const processed = processDropsSummary(summaryData, displayLod, startDate);
51
if (!processed) return;
0 commit comments