We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c43d712 commit 974d711Copy full SHA for 974d711
src/app/templatetags/app_tags.py
@@ -231,11 +231,10 @@ def status_color(status):
231
@register.filter
232
def natural_day(datetime, user):
233
"""Format date with natural language (Today, Tomorrow, etc.)."""
234
- # Get today's date in the current timezone
235
today = timezone.localdate()
236
237
- # Extract just the date part for comparison
238
- datetime_date = datetime.date()
+ local_dt = timezone.localtime(datetime)
+ datetime_date = local_dt.date()
239
240
# Calculate the difference in days
241
diff = datetime_date - today
0 commit comments