mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: use short date format for post navigator
This commit is contained in:
parent
d7e4a19f3a
commit
3c005557e6
@ -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
Block a user