Fix non-UTC time
This commit is contained in:
parent
0e37a800b5
commit
88bccabfe4
|
@ -21,7 +21,7 @@ for mail in Path('scheduled').glob('*.mail'):
|
||||||
scheduled = re.findall(r'Scheduled to \(UTC\): (.*)\n', msg)[0]
|
scheduled = re.findall(r'Scheduled to \(UTC\): (.*)\n', msg)[0]
|
||||||
scheduled = datetime.fromisoformat(scheduled)
|
scheduled = datetime.fromisoformat(scheduled)
|
||||||
|
|
||||||
if scheduled <= datetime.now():
|
if scheduled <= datetime.utcnow():
|
||||||
to_address = re.findall(r'To: (.*)\n', msg)[0]
|
to_address = re.findall(r'To: (.*)\n', msg)[0]
|
||||||
subject = re.findall(r'Subject: (.*)\n', msg)[0]
|
subject = re.findall(r'Subject: (.*)\n', msg)[0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue