fix: 修复通知用户过期时间bug

pull/7467/head
halo 2021-12-31 17:18:43 +08:00 committed by Jiangjie.Bai
parent bd84edea62
commit 3f6c9d519e
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class PasswordExpirationReminderMsg(UserMessage):
class UserExpirationReminderMsg(UserMessage):
def get_html_msg(self) -> dict:
subject = _('Account is about expire')
date_expired_local = timezone.localtime(self.user.date_password_expired)
date_expired_local = timezone.localtime(self.user.date_expired)
date_expired = date_expired_local.strftime('%Y-%m-%d %H:%M:%S')
context = {
'name': self.user.name,