Fix non-UTC time

This commit is contained in:
Augusto Gunsch 2022-04-26 11:06:53 -03:00
parent 0e37a800b5
commit 88bccabfe4
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ for mail in Path('scheduled').glob('*.mail'):
scheduled = re.findall(r'Scheduled to \(UTC\): (.*)\n', msg)[0]
scheduled = datetime.fromisoformat(scheduled)
if scheduled <= datetime.now():
if scheduled <= datetime.utcnow():
to_address = re.findall(r'To: (.*)\n', msg)[0]
subject = re.findall(r'Subject: (.*)\n', msg)[0]