Format hours in session week table
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user