From 7bd09e73267f2f5916c693c9bd2ff7a687a114cb Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Tue, 2 Nov 2021 14:19:10 +0200 Subject: [PATCH] fix: BIG-157 incorrect formatted date. --- src/components/Utils/FormatDate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Utils/FormatDate.js b/src/components/Utils/FormatDate.js index 0dd88bb73..4ac2c8047 100644 --- a/src/components/Utils/FormatDate.js +++ b/src/components/Utils/FormatDate.js @@ -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); } /**