summaryrefslogtreecommitdiff
path: root/src/mailman/mta/postfix.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-26 08:04:00 -0400
committerBarry Warsaw2012-03-26 08:04:00 -0400
commit5cb68db131db32c643382f6fd1418a3659dc6f8e (patch)
tree13a2e02a48303804c2cae37c656937711bd37fa5 /src/mailman/mta/postfix.py
parentcfb7138579ddb8a4adb10956ceb39089181271b4 (diff)
downloadmailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.tar.gz
mailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.tar.zst
mailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.zip
Diffstat (limited to 'src/mailman/mta/postfix.py')
-rw-r--r--src/mailman/mta/postfix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/mta/postfix.py b/src/mailman/mta/postfix.py
index 14f19635a..32bdb8268 100644
--- a/src/mailman/mta/postfix.py
+++ b/src/mailman/mta/postfix.py
@@ -27,7 +27,6 @@ __all__ = [
import os
import logging
-import datetime
from flufl.lock import Lock
from operator import attrgetter
@@ -38,6 +37,7 @@ from mailman.config import config
from mailman.interfaces.listmanager import IListManager
from mailman.interfaces.mta import (
IMailTransportAgentAliases, IMailTransportAgentLifecycle)
+from mailman.utilities.datetime import now
log = logging.getLogger('mailman.error')
@@ -124,7 +124,7 @@ class LMTP:
# file. YOU SHOULD NOT MANUALLY EDIT THIS FILE unless you know what you're
# doing, and can keep the two files properly in sync. If you screw it up,
# you're on your own.
-""".format(datetime.datetime.now().replace(microsecond=0))
+""".format(now().replace(microsecond=0))
sort_key = attrgetter('list_name')
for domain in sorted(by_domain):
print >> fp, """\