Skip to content

Commit 09239dc

Browse files
committed
fix: invalid handling of ISO time in RPC graphs
1 parent 9493fda commit 09239dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/usage/rpc/components/count-graph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function CountGraph(props: {
5555
data={props.data
5656
.sort((a, b) => new Date(a.date).getTime() - new Date(b.date).getTime())
5757
.map((v) => ({
58-
time: `${v.date}Z`,
58+
time: v.date,
5959
includedCount: Number(v.includedCount) + Number(v.overageCount),
6060
rateLimitedCount: Number(v.rateLimitedCount),
6161
}))}

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/usage/rpc/components/rate-graph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function RateGraph(props: {
4545
data={props.data
4646
.sort((a, b) => new Date(a.date).getTime() - new Date(b.date).getTime())
4747
.map((v) => ({
48-
time: `${v.date}Z`,
48+
time: v.date,
4949
averageRate: Number(Number(v.averageRate).toFixed(2)),
5050
peakRPS: Number(v.peakRPS),
5151
maxLine: props.currentRateLimit,

0 commit comments

Comments
 (0)