diff --git a/src/bk-user/bkuser/apps/tenant/models.py b/src/bk-user/bkuser/apps/tenant/models.py index b708a3999..6102f38a5 100644 --- a/src/bk-user/bkuser/apps/tenant/models.py +++ b/src/bk-user/bkuser/apps/tenant/models.py @@ -10,7 +10,6 @@ """ from django.conf import settings from django.db import models -from django.utils import timezone from bkuser.apps.data_source.models import DataSource, DataSourceDepartment, DataSourceUser from bkuser.apps.tenant.constants import TenantFeatureFlag, UserFieldDataType @@ -81,8 +80,7 @@ class Meta: @property def account_expired_at_display(self) -> str: - local_time = timezone.localtime(self.account_expired_at) - return local_time.strftime("%Y-%m-%d %H:%M:%S") + return self.account_expired_at.strftime("%Y-%m-%d") class TenantDepartment(TimestampedModel):