diff --git a/app/javascript/shared/helpers/DateHelper.js b/app/javascript/shared/helpers/DateHelper.js index 12de33755..f0d2eafe6 100644 --- a/app/javascript/shared/helpers/DateHelper.js +++ b/app/javascript/shared/helpers/DateHelper.js @@ -39,7 +39,8 @@ export const getUnixStartOfDay = date => getUnixTime(startOfDay(date)); export const getUnixEndOfDay = date => getUnixTime(endOfDay(date)); export const generateRelativeTime = (value, unit, languageCode) => { - const rtf = new Intl.RelativeTimeFormat(languageCode, { + const code = languageCode.replace(/_/g, '-'); // Hacky fix we need to handle it from source + const rtf = new Intl.RelativeTimeFormat(code, { numeric: 'auto', }); return rtf.format(value, unit);