Skip to content

Commit

Permalink
Fix: #1306
Browse files Browse the repository at this point in the history
  • Loading branch information
jomeier committed May 15, 2024
1 parent 1f84a43 commit 690f23f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-paws-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@roadiehq/backstage-plugin-prometheus': minor
---

Fixes the tick date format issue described here: https://github.com/RoadieHQ/roadie-backstage-plugins/issues/1306
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const AreaGraph = ({ data, keys, metrics }: GraphProps) => {
dataKey="time"
domain={['dataMin', 'dataMax']}
tickFormatter={timeStr =>
DateTime.fromSeconds(timeStr).toFormat('HH:MM:ss')
DateTime.fromSeconds(timeStr).toFormat('HH:mm:ss')
}
tickCount={6}
type="number"
Expand Down Expand Up @@ -190,7 +190,7 @@ export const LineGraph = ({ data, keys, metrics }: GraphProps) => {
dataKey="time"
domain={['dataMin', 'dataMax']}
tickFormatter={timeStr =>
DateTime.fromSeconds(timeStr).toFormat('HH:MM:ss')
DateTime.fromSeconds(timeStr).toFormat('HH:mm:ss')
}
tickCount={6}
type="number"
Expand Down

0 comments on commit 690f23f

Please sign in to comment.