FIX: allow localization in timestamp

This commit is contained in:
Arpit Jalan 2014-08-27 20:56:56 +05:30
parent 009dc7ded3
commit 3a76f9e79f
2 changed files with 4 additions and 2 deletions

View File

@ -80,9 +80,9 @@ longDateNoYear = function(dt) {
if (!dt) return; if (!dt) return;
if ((new Date()).getFullYear() !== dt.getFullYear()) { if ((new Date()).getFullYear() !== dt.getFullYear()) {
return moment(dt).format("MMM D, 'YY LT"); return moment(dt).format(I18n.t("dates.long_date_with_year"));
} else { } else {
return moment(dt).format("MMM D, LT"); return moment(dt).format(I18n.t("dates.long_date_without_year"));
} }
}; };

View File

@ -35,6 +35,8 @@ en:
long_no_year_no_time: "MMM D" long_no_year_no_time: "MMM D"
long_with_year: "MMM D, YYYY h:mm a" long_with_year: "MMM D, YYYY h:mm a"
long_with_year_no_time: "MMM D, YYYY" long_with_year_no_time: "MMM D, YYYY"
long_date_with_year: "MMM D, 'YY LT"
long_date_without_year: "MMM D, LT"
tiny: tiny:
half_a_minute: "< 1m" half_a_minute: "< 1m"
less_than_x_seconds: less_than_x_seconds: