From dd45823790005bd75e0e31c264884cce05384f3b Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Wed, 18 Sep 2024 19:40:44 +1000 Subject: [PATCH] enable localised dates --- bookwyrm/templatetags/status_display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templatetags/status_display.py b/bookwyrm/templatetags/status_display.py index c0ab40689..5d1f86caf 100644 --- a/bookwyrm/templatetags/status_display.py +++ b/bookwyrm/templatetags/status_display.py @@ -1,6 +1,7 @@ """ template filters """ from dateutil.relativedelta import relativedelta from django import template +from django.conf import settings from django.contrib.humanize.templatetags.humanize import naturaltime, naturalday from django.template.loader import select_template from django.utils import timezone @@ -61,7 +62,7 @@ def get_published_date(date): if delta.years: return naturalday(date) if delta.days or delta.months: - return naturalday(date, "M j") + return naturalday(date, settings.MONTH_DAY_FORMAT) return naturaltime(date)