fix: hotbug date formats localization.

This commit is contained in:
a.bouhuolia
2021-09-15 11:43:49 +02:00
parent baa82604c0
commit 973cb09af6

View File

@@ -6,7 +6,7 @@ import intl from 'react-intl-universal';
* Format the given date. * Format the given date.
*/ */
export function FormatDate({ value, format = 'YYYY MMM DD' }) { export function FormatDate({ value, format = 'YYYY MMM DD' }) {
const localizedFormat = intl.get(`date_format.${format}`); const localizedFormat = intl.get(`date_formats.${format}`);
return moment().format(localizedFormat); return moment().format(localizedFormat);
} }