Skip to content

Commit e24865b

Browse files
committed
fix: requests chart year 1970
1 parent e4413e5 commit e24865b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/views/admin/components/charts/RequestsChart.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const dataZoomOption = computed(() => {
139139
type: 'slider',
140140
show: showDataZoom.value,
141141
xAxisIndex: 0,
142-
startValue: currentTimestamp - 1000 * 60 * 60 * 24 * 3,
142+
startValue: currentTimestamp - 1000 * 60 * 60 * 24 * 7,
143143
endValue: currentTimestamp,
144144
filterMode: 'filter',
145145
},
@@ -229,7 +229,7 @@ const option = computed(() => {
229229
const data = el.data as any;
230230
return `<div>
231231
<span>${timeFormatter(data.timestamp, true)} ~ ${timeFormatter(
232-
new Date(data.timestamp).getTime() / 1000 + props.requestStatsGranularity!,
232+
new Date(data.timestamp).getTime() + props.requestStatsGranularity! * 1000,
233233
true
234234
)}</span>
235235
<br />

0 commit comments

Comments
 (0)