Comma needs to die
This commit is contained in:
parent
a72e7324ba
commit
113057bfa9
|
@ -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) {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue