perf: Dashboard days_to_datetime

This commit is contained in:
feng
2026-01-08 16:05:07 +08:00
committed by ZhaoJiSen
parent 1e085029dc
commit 20cb13bc40

View File

@@ -46,7 +46,7 @@ class DateTimeMixin:
if days == 1:
t = local_zero_hour()
else:
t = local_now() - timezone.timedelta(days=days)
t = local_zero_hour() - timezone.timedelta(days=days)
return t
@lazyproperty