format
This commit is contained in:
parent
6d89ee0154
commit
440d717bc4
@ -6,7 +6,6 @@ const MINUTE = 'minute';
|
|||||||
const SECOND = 'second';
|
const SECOND = 'second';
|
||||||
const MILLISECOND = 'millisecond';
|
const MILLISECOND = 'millisecond';
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
parse_duration(duration) {
|
parse_duration(duration) {
|
||||||
const regex = /([0-9]+)(y|m|d|h|min|s|ms)/gm;
|
const regex = /([0-9]+)(y|m|d|h|min|s|ms)/gm;
|
||||||
@ -84,7 +83,7 @@ export default {
|
|||||||
month: 'long',
|
month: 'long',
|
||||||
});
|
});
|
||||||
const dateTimeFormatShort = new Intl.DateTimeFormat(lang, {
|
const dateTimeFormatShort = new Intl.DateTimeFormat(lang, {
|
||||||
month: "short",
|
month: 'short',
|
||||||
});
|
});
|
||||||
const month_name = dateTimeFormat.format(date);
|
const month_name = dateTimeFormat.format(date);
|
||||||
const month_name_capitalized =
|
const month_name_capitalized =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user