mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +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.
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user