aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/custodians.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/custodians.py')
-rw-r--r--python/report_ops/custodians.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py
index 33b5f154..b95def6e 100644
--- a/python/report_ops/custodians.py
+++ b/python/report_ops/custodians.py
@@ -110,7 +110,7 @@ class NT(Custodian, account="NT"):
em = ExchangeMessage()
for msg in em.get_msgs(path=["SeleneOps", "Passport"]):
for attach in msg.attachments:
- message_time = attach.last_modified_time
+ message_time = attach.last_modified_time.replace(tzinfo=None)
if attach.name == "Attachment1.pgp" and message_time.date() == date:
dest = get_dir(message_time.date(), archived=False)
dest.mkdir(exist_ok=True, parents=True)
@@ -135,7 +135,7 @@ class UMB(Custodian, account="UMB"):
em = ExchangeMessage()
for msg in em.get_msgs(count=20, path=["NYops", "Powerstation"]):
for attach in msg.attachments:
- timestamp = attach.last_modified_time
+ timestamp = attach.last_modified_time.replace(tzinfo=None)
if timestamp.date() == date:
dest = get_dir(timestamp.date(), archived=False)
dest.mkdir(exist_ok=True, parents=True)