From 3f6c9d519ef2633b0851ef89d4eded36efcb6682 Mon Sep 17 00:00:00 2001 From: halo Date: Fri, 31 Dec 2021 17:18:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=BF=87=E6=9C=9F=E6=97=B6=E9=97=B4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/users/notifications.py b/apps/users/notifications.py index c9e5a0521..99aeb77b7 100644 --- a/apps/users/notifications.py +++ b/apps/users/notifications.py @@ -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,