Skip to content

Commit

Permalink
Format dates on graph updates (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald authored Nov 25, 2024
1 parent e7c4cf4 commit 225c02a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/livewire/servers.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class="w-full min-w-[5rem] max-w-xs h-9 relative"
return
}
chart.data.labels = Object.keys(servers[config.slug].cpu)
chart.data.labels = Object.keys(servers[config.slug].cpu).map(formatDate)
chart.data.datasets[0].data = Object.values(servers[config.slug].cpu)
chart.update()
})
Expand Down Expand Up @@ -275,7 +275,7 @@ class="w-full min-w-[5rem] max-w-xs h-9 relative"
return
}
chart.data.labels = Object.keys(servers[config.slug].memory)
chart.data.labels = Object.keys(servers[config.slug].memory).map(formatDate)
chart.data.datasets[0].data = Object.values(servers[config.slug].memory)
chart.update()
})
Expand Down

0 comments on commit 225c02a

Please sign in to comment.