UI: Use a more compact DateTime format
This commit is contained in:
parent
fb774e2e45
commit
0a71c798c8
@ -23,5 +23,5 @@ export function relativeTime(timestamp, options) {
|
|||||||
const ageInDays = now.diff(parsedTimestamp).as('days');
|
const ageInDays = now.diff(parsedTimestamp).as('days');
|
||||||
if (ageInDays > options.format)
|
if (ageInDays > options.format)
|
||||||
return parsedTimestamp.toLocaleString(options.format);
|
return parsedTimestamp.toLocaleString(options.format);
|
||||||
return parsedTimestamp.toRelative();
|
return parsedTimestamp.toRelative({style: "narrow"});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user