Compare with a datetime object is better...

fixes #399
This commit is contained in:
Antoine Nguyen
2013-04-17 13:57:03 +02:00
parent 8e7d69d1b9
commit 6aa6761bd9
@@ -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