Fix minutes rounding
This commit is contained in:
parent
e4f8b31115
commit
0e37a800b5
|
@ -10,7 +10,7 @@ EDITOR = os.environ.get('EDITOR', 'vim')
|
||||||
os.makedirs('scheduled', exist_ok=True)
|
os.makedirs('scheduled', exist_ok=True)
|
||||||
|
|
||||||
tomorrow = datetime.utcnow() + timedelta(days=1)
|
tomorrow = datetime.utcnow() + timedelta(days=1)
|
||||||
tomorrow = tomorrow.replace(microsecond=0, second=0, minute=int(tomorrow.minute/15))
|
tomorrow = tomorrow.replace(microsecond=0, second=0, minute=15*int(tomorrow.minute/15))
|
||||||
initial_msg = f'To: \nSubject: \nScheduled to (UTC): {tomorrow.isoformat()}\n---- Body ----'
|
initial_msg = f'To: \nSubject: \nScheduled to (UTC): {tomorrow.isoformat()}\n---- Body ----'
|
||||||
|
|
||||||
with tempfile.NamedTemporaryFile() as file:
|
with tempfile.NamedTemporaryFile() as file:
|
||||||
|
|
Loading…
Reference in New Issue