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
1 changed files with 1 additions and 1 deletions

View File

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