mirror of
https://github.com/umami-software/umami.git
synced 2026-02-23 05:55:35 +01:00
Fixed timezone date format.
This commit is contained in:
parent
17e2658fdc
commit
511fec2ddb
6 changed files with 22 additions and 20 deletions
|
|
@ -15,7 +15,7 @@ export function SessionActivity({
|
|||
startDate: Date;
|
||||
endDate: Date;
|
||||
}) {
|
||||
const { formatDate } = useTimezone();
|
||||
const { formatTimezoneDate } = useTimezone();
|
||||
const { data, isLoading } = useSessionActivity(websiteId, sessionId, startDate, endDate);
|
||||
|
||||
if (isLoading) {
|
||||
|
|
@ -33,12 +33,12 @@ export function SessionActivity({
|
|||
return (
|
||||
<>
|
||||
{showHeader && (
|
||||
<div className={styles.header}>{formatDate(createdAt, 'EEEE, PPP')}</div>
|
||||
<div className={styles.header}>{formatTimezoneDate(createdAt, 'EEEE, PPP')}</div>
|
||||
)}
|
||||
<div key={eventId} className={styles.row}>
|
||||
<div className={styles.time}>
|
||||
<StatusLight color={`#${visitId?.substring(0, 6)}`}>
|
||||
{formatDate(createdAt, 'h:mm:ss aaa')}
|
||||
{formatTimezoneDate(createdAt, 'h:mm:ss aaa')}
|
||||
</StatusLight>
|
||||
</div>
|
||||
<Icon>{eventName ? <Icons.Bolt /> : <Icons.Eye />}</Icon>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue