mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Format hours in session week table
This commit is contained in:
parent
0b8f251a2d
commit
c0c1138e2e
1 changed files with 3 additions and 1 deletions
|
|
@ -40,7 +40,9 @@ export function SessionsWeekly({ websiteId }: { websiteId: string }) {
|
|||
{Array(24)
|
||||
.fill(null)
|
||||
.map((_, i) => {
|
||||
const label = format(addHours(startOfDay(new Date()), i), 'haaa');
|
||||
const label = format(addHours(startOfDay(new Date()), i), 'p', { locale: dateLocale })
|
||||
.replace(/\D00 ?/, '')
|
||||
.toLowerCase();
|
||||
return (
|
||||
<div key={i} className={styles.hour}>
|
||||
{label}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue