diff options
| author | Barry Warsaw | 2012-03-26 08:04:00 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-26 08:04:00 -0400 |
| commit | 5cb68db131db32c643382f6fd1418a3659dc6f8e (patch) | |
| tree | 13a2e02a48303804c2cae37c656937711bd37fa5 /src/mailman/model/listmanager.py | |
| parent | cfb7138579ddb8a4adb10956ceb39089181271b4 (diff) | |
| download | mailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.tar.gz mailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.tar.zst mailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.zip | |
Diffstat (limited to 'src/mailman/model/listmanager.py')
| -rw-r--r-- | src/mailman/model/listmanager.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mailman/model/listmanager.py b/src/mailman/model/listmanager.py index cb56a36b6..0ea87a082 100644 --- a/src/mailman/model/listmanager.py +++ b/src/mailman/model/listmanager.py @@ -25,8 +25,6 @@ __all__ = [ ] -import datetime - from zope.event import notify from zope.interface import implements @@ -36,6 +34,7 @@ from mailman.interfaces.listmanager import ( IListManager, ListAlreadyExistsError, ListCreatedEvent, ListCreatingEvent, ListDeletedEvent, ListDeletingEvent) from mailman.model.mailinglist import MailingList +from mailman.utilities.datetime import now @@ -57,7 +56,7 @@ class ListManager: if mlist: raise ListAlreadyExistsError(fqdn_listname) mlist = MailingList(fqdn_listname) - mlist.created_at = datetime.datetime.now() + mlist.created_at = now() config.db.store.add(mlist) notify(ListCreatedEvent(mlist)) return mlist |
