fix(splunk-on-call-plugin): luxon locale

This commit is contained in:
Remi
2021-02-10 01:17:16 +01:00
parent 9d4af11529
commit e44f90a5c0
@@ -130,7 +130,7 @@ export const IncidentListItem = ({ incident, onIncidentAction }: Props) => {
new Date().getTime() - new Date(incident.startTime!).getTime();
const createdAt = DateTime.local()
.minus(Duration.fromMillis(duration))
.toRelative();
.toRelative({ locale: 'en' });
const alertApi = useApi(alertApiRef);
const api = useApi(splunkOnCallApiRef);
@@ -211,7 +211,7 @@ export const IncidentListItem = ({ incident, onIncidentAction }: Props) => {
}}
secondary={
<Typography noWrap variant="body2" color="textSecondary">
Created {createdAt} ago {user && `by ${user}`}
Created {createdAt} {user && `by ${user}`}
</Typography>
}
/>