FIX: mdash being displayed when a date was invalid

This commit is contained in:
Robin Ward 2016-06-08 11:07:45 -04:00
parent da4789253c
commit c275a68daf

View file

@ -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) {