I have a python script running on python 3.6.4 locally buy trying to run it on a system with python 2.7.
File "report_scheduler.py", line 5, in <module>
from datetime import datetime, timedelta, timezone, tzinfo
ImportError: cannot import name timezone
I cant seem to import timezone module. I can't seem to install the timezone module. is there an easy way to import that module or modify the scripts to not need it? my only two references to that module are below.
from datetime import datetime, timedelta, timezone, tzinfo
last_run=(row[4]).replace(tzinfo=timezone.utc)
time_since_last_request = datetime.now(timezone.utc) - last_run