Always use localized format
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user