mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
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)});
|
formatted = t("x_days", {count: Math.round((distanceInMinutes - 720.0) / 1440.0)});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return formatted || '&mdash';
|
return formatted || '—';
|
||||||
}
|
}
|
||||||
|
|
||||||
function relativeAgeMedium(date, options) {
|
function relativeAgeMedium(date, options) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user