diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/intl/DateFormatter.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/intl/DateFormatter.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/components/intl/DateFormatter.tsx b/server/sonar-web/src/main/js/components/intl/DateFormatter.tsx index 91670a3c895..9c12362ba9d 100644 --- a/server/sonar-web/src/main/js/components/intl/DateFormatter.tsx +++ b/server/sonar-web/src/main/js/components/intl/DateFormatter.tsx @@ -33,10 +33,8 @@ export const longFormatterOption = { year: 'numeric', month: 'long', day: 'numer export default function DateFormatter({ children, date, long }: Props) { return ( - <FormattedDate - children={children} - value={parseDate(date)} - {...(long ? longFormatterOption : formatterOption)} - /> + <FormattedDate value={parseDate(date)} {...(long ? longFormatterOption : formatterOption)}> + {children} + </FormattedDate> ); } |