mirror of
https://github.com/flarum/framework.git
synced 2025-06-25 04:11:23 +08:00
Implement time gap indicators
Get rid of short human times (1m, 1h, 1d) for now
This commit is contained in:
@ -1,21 +1,3 @@
|
||||
moment.locale('en', {
|
||||
relativeTime : {
|
||||
future: "in %s",
|
||||
past: "%s ago",
|
||||
s: "seconds",
|
||||
m: "1m",
|
||||
mm: "%dm",
|
||||
h: "1h",
|
||||
hh: "%dh",
|
||||
d: "1d",
|
||||
dd: "%dd",
|
||||
M: "a month",
|
||||
MM: "%d months",
|
||||
y: "a year",
|
||||
yy: "%d years"
|
||||
}
|
||||
});
|
||||
|
||||
export default function humanTime(time) {
|
||||
var m = moment(time);
|
||||
|
||||
|
Reference in New Issue
Block a user