From 6aa6761bd96102bdfb8ad1b2ba368a13959544a9 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 17 Apr 2013 13:57:03 +0200 Subject: [PATCH] Compare with a datetime object is better... fixes #399 --- .../postfix_autoreply/management/commands/autoreply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py b/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py index a0227f96f..b39f5c066 100644 --- a/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py +++ b/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py @@ -12,7 +12,7 @@ from modoboa.extensions.postfix_autoreply.models import ARmessage, ARhistoric def send_autoreply(sender, mailbox, armessage): if armessage.untildate is not None \ - and armessage.untildate < datetime.date.today(): + and armessage.untildate < datetime.datetime.today(): armessage.enabled = False armessage.save() return