mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-16 07:28:59 +00:00
perf: Dashboard days_to_datetime
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user