Merge pull request #2726 from techAPJ/patch-4
FIX: use short date format for post navigator
This commit is contained in:
commit
7a50ba600a
|
@ -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')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue