Commit 26a69c88 authored by isstuev's avatar isstuev

change time ago format

parent 57ecc5f5
......@@ -18,7 +18,9 @@ const relativeTimeConfig = {
{ l: 'h', r: 1 },
{ l: 'hh', r: 23, d: 'hour' },
{ l: 'd', r: 1 },
{ l: 'dd', r: 29, d: 'day' },
{ l: 'dd', r: 6, d: 'day' },
{ l: 'w', r: 1 },
{ l: 'ww', r: 4, d: 'week' },
{ l: 'M', r: 1 },
{ l: 'MM', r: 11, d: 'month' },
{ l: 'y', r: 17 },
......@@ -38,20 +40,22 @@ dayjs.updateLocale('en', {
llll: `MMM DD YYYY HH:mm:ss A (Z${ nbsp }UTC)`,
},
relativeTime: {
s: 'a sec',
ss: '%d secs',
s: '1s',
ss: '%ds',
future: 'in %s',
past: '%s ago',
m: '1 min',
mm: '%d mins',
h: '1 h',
hh: '%d h',
d: '1 d',
dd: '%d d',
M: '1 mo',
MM: '%d mo',
y: '1 y',
yy: '%d y',
m: '1m',
mm: '%dm',
h: '1h',
hh: '%dh',
d: '1d',
dd: '%dd',
w: '1w',
ww: '%dw',
M: '1mo',
MM: '%dmo',
y: '1y',
yy: '%dy',
},
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment