mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
fix: BIG-157 incorrect formatted date.
This commit is contained in:
@@ -8,7 +8,7 @@ import intl from 'react-intl-universal';
|
|||||||
export function FormatDate({ value, format = 'YYYY MMM DD' }) {
|
export function FormatDate({ value, format = 'YYYY MMM DD' }) {
|
||||||
const localizedFormat = intl.get(`date_formats.${format}`);
|
const localizedFormat = intl.get(`date_formats.${format}`);
|
||||||
|
|
||||||
return moment().format(localizedFormat);
|
return moment(value).format(localizedFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user