FIX: `mdash` being displayed when a date was invalid
This commit is contained in:
parent
da4789253c
commit
c275a68daf
|
@ -203,7 +203,7 @@ function relativeAgeMediumSpan(distance, leaveAgo) {
|
|||
formatted = t("x_days", {count: Math.round((distanceInMinutes - 720.0) / 1440.0)});
|
||||
break;
|
||||
}
|
||||
return formatted || '&mdash';
|
||||
return formatted || '—';
|
||||
}
|
||||
|
||||
function relativeAgeMedium(date, options) {
|
||||
|
|
Loading…
Reference in New Issue