Comma needs to die

This commit is contained in:
Neil Lalonde 2014-02-06 11:57:45 -05:00
parent a72e7324ba
commit 113057bfa9
3 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,7 @@ Discourse.Formatter = (function(){
breakUp = cappedMemoize(breakUp, 100); breakUp = cappedMemoize(breakUp, 100);
shortDate = function(date){ shortDate = function(date){
return moment(date).shortDate(); return moment(date).format(I18n.t("dates.medium.date_year"));
}; };
shortDateNoYear = function(date) { shortDateNoYear = function(date) {

View File

@ -61,6 +61,7 @@ en:
x_days: x_days:
one: "1 day" one: "1 day"
other: "%{count} days" other: "%{count} days"
date_year: "D MMM YYYY"
medium_with_ago: medium_with_ago:
x_minutes: x_minutes:
one: "1 min ago" one: "1 min ago"

View File

@ -40,7 +40,7 @@ test("formating medium length dates", function() {
}; };
var shortDateYear = function(days){ var shortDateYear = function(days){
return moment().subtract('days', days).format('D MMM, YYYY'); return moment().subtract('days', days).format('D MMM YYYY');
}; };
leaveAgo = true; leaveAgo = true;