FIX: use short date format for post navigator

This commit is contained in:
Arpit Jalan 2014-08-30 11:34:33 +05:30
parent d7e4a19f3a
commit 3c005557e6
2 changed files with 3 additions and 2 deletions

View File

@ -8,12 +8,12 @@ function entranceDate(dt, showTime) {
if (dt.getYear() === today.getYear()) { if (dt.getYear() === today.getYear()) {
// No year // No year
return moment(dt).format( return moment(dt).format(
showTime ? I18n.t("dates.long_no_year") : I18n.t("dates.long_no_year_no_time") showTime ? I18n.t("dates.long_date_without_year") : I18n.t("dates.long_no_year_no_time")
); );
} }
return moment(dt).format( return moment(dt).format(
showTime ? I18n.t('dates.long_with_year') : I18n.t('dates.long_with_year_no_time') showTime ? I18n.t('dates.long_date_with_year') : I18n.t('dates.long_date_with_year_without_time')
); );
} }

View File

@ -37,6 +37,7 @@ en:
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_with_year: "MMM D, 'YY LT"
long_date_without_year: "MMM D, LT" long_date_without_year: "MMM D, LT"
long_date_with_year_without_time: "MMM D, 'YY"
tiny: tiny:
half_a_minute: "< 1m" half_a_minute: "< 1m"
less_than_x_seconds: less_than_x_seconds: