From c275a68daf86235d81e90206b090bc61fcba8a00 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 8 Jun 2016 11:07:45 -0400 Subject: [PATCH] FIX: `mdash` being displayed when a date was invalid --- app/assets/javascripts/discourse/lib/formatter.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/formatter.js.es6 b/app/assets/javascripts/discourse/lib/formatter.js.es6 index 9dcbadbf7a7..4ef0e9fe352 100644 --- a/app/assets/javascripts/discourse/lib/formatter.js.es6 +++ b/app/assets/javascripts/discourse/lib/formatter.js.es6 @@ -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) {