mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +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)
|
{Array(24)
|
||||||
.fill(null)
|
.fill(null)
|
||||||
.map((_, i) => {
|
.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 (
|
return (
|
||||||
<div key={i} className={styles.hour}>
|
<div key={i} className={styles.hour}>
|
||||||
{label}
|
{label}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue