Skip to content

Commit

Permalink
refactor: cr调整
Browse files Browse the repository at this point in the history
  • Loading branch information
neronkl committed Nov 7, 2023
1 parent c0c7602 commit abb1e07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bk-user/bkuser/apps/tenant/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit abb1e07

Please sign in to comment.