From 350d910cd6159898004bcae14d68b850dc1e397a Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Fri, 19 Apr 2013 17:10:05 +0200 Subject: [PATCH] Previous fix was too heavy :p see #399 --- .../postfix_autoreply/management/commands/autoreply.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py b/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py index 9a4009e3c..5731833c0 100644 --- a/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py +++ b/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py @@ -11,10 +11,8 @@ from modoboa.extensions.postfix_autoreply import PostfixAutoreply from modoboa.extensions.postfix_autoreply.models import ARmessage, ARhistoric def send_autoreply(sender, mailbox, armessage): - today = timezone.make_aware(datetime.datetime.today(), - timezone.get_default_timezone()) if armessage.untildate is not None \ - and armessage.untildate < today: + and armessage.untildate < datetime.date.today(): armessage.enabled = False armessage.save() return