mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Always use localized format
This commit is contained in:
parent
68e2fe5d6f
commit
95259ee944
3 changed files with 4 additions and 4 deletions
|
|
@ -53,7 +53,7 @@ export function RealtimeLog({ data }: { data: RealtimeData }) {
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const getTime = ({ createdAt, firstAt }) => formatTimezoneDate(firstAt || createdAt, 'h:mm:ss');
|
const getTime = ({ createdAt, firstAt }) => formatTimezoneDate(firstAt || createdAt, 'pp');
|
||||||
|
|
||||||
const getColor = ({ id, sessionId }) => stringToColor(sessionId || id);
|
const getColor = ({ id, sessionId }) => stringToColor(sessionId || id);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ export function SessionActivity({
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{showHeader && (
|
{showHeader && (
|
||||||
<div className={styles.header}>{formatTimezoneDate(createdAt, 'EEEE, PPP')}</div>
|
<div className={styles.header}>{formatTimezoneDate(createdAt, 'PPPP')}</div>
|
||||||
)}
|
)}
|
||||||
<div key={eventId} className={styles.row}>
|
<div key={eventId} className={styles.row}>
|
||||||
<div className={styles.time}>
|
<div className={styles.time}>
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@ export default function SessionInfo({ data }) {
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>{formatMessage(labels.lastSeen)}</dt>
|
<dt>{formatMessage(labels.lastSeen)}</dt>
|
||||||
<dd>{formatTimezoneDate(data?.lastAt, 'EEEE, PPPpp')}</dd>
|
<dd>{formatTimezoneDate(data?.lastAt, 'PPPPpp')}</dd>
|
||||||
|
|
||||||
<dt>{formatMessage(labels.firstSeen)}</dt>
|
<dt>{formatMessage(labels.firstSeen)}</dt>
|
||||||
<dd>{formatTimezoneDate(data?.firstAt, 'EEEE, PPPpp')}</dd>
|
<dd>{formatTimezoneDate(data?.firstAt, 'PPPPpp')}</dd>
|
||||||
|
|
||||||
<dt>{formatMessage(labels.country)}</dt>
|
<dt>{formatMessage(labels.country)}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue