summaryrefslogtreecommitdiff
path: root/src/mailman/handlers/to_digest.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/handlers/to_digest.py
parentcfb7138579ddb8a4adb10956ceb39089181271b4 (diff)
downloadmailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.tar.gz
mailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.tar.zst
mailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.zip
Architecture
------------ * Internally, all datetimes are kept in the UTC timezone, however because of LP: #280708, they are stored in the database in naive format. * `received_time` is now added to the message metadata by the LMTP runner instead of by `Switchboard.enqueue()`. This latter no longer depends on `received_time` in the metadata. * The `ArchiveRunner` no longer acquires a lock before it calls the individual archiver implementations, since not all of them need a lock. If they do, the implementations must acquire said lock themselves. Configuration ------------- * New configuration variables `clobber_date` and `clobber_skew` supported in every `[archiver.<name>]` section. These are used to determine under what circumstances a message destined for a specific archiver should have its `Date:` header clobbered.
Diffstat (limited to 'src/mailman/handlers/to_digest.py')
-rw-r--r--src/mailman/handlers/to_digest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/handlers/to_digest.py b/src/mailman/handlers/to_digest.py
index 698f16e1e..71511f136 100644
--- a/src/mailman/handlers/to_digest.py
+++ b/src/mailman/handlers/to_digest.py
@@ -26,7 +26,6 @@ __all__ = [
import os
-import datetime
from zope.interface import implements
@@ -35,6 +34,7 @@ from mailman.core.i18n import _
from mailman.email.message import Message
from mailman.interfaces.digests import DigestFrequency
from mailman.interfaces.handler import IHandler
+from mailman.utilities.datetime import now as right_now
from mailman.utilities.mailbox import Mailbox
@@ -85,7 +85,7 @@ class ToDigest:
def bump_digest_number_and_volume(mlist):
"""Bump the digest number and volume."""
- now = datetime.datetime.now()
+ now = right_now()
if mlist.digest_last_sent_at is None:
# There has been no previous digest.
bump = False