mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix: hotbug date formats localization.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user