From e44f90a5c07e1eda376d2e28e125dda5a55d965b Mon Sep 17 00:00:00 2001 From: Remi Date: Wed, 10 Feb 2021 01:17:16 +0100 Subject: [PATCH] fix(splunk-on-call-plugin): luxon locale --- .../src/components/Incident/IncidentListItem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx b/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx index 0f791462ae..1bf233de86 100644 --- a/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx +++ b/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx @@ -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={ - Created {createdAt} ago {user && `by ${user}`} + Created {createdAt} {user && `by ${user}`} } />