fix: BIG-157 incorrect formatted date.

This commit is contained in:
a.bouhuolia
2021-11-02 14:19:10 +02:00
parent 352e517c2b
commit 7bd09e7326

View File

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