How do I convert a datetime string in local time to a string in UTC time?
I\'m sure I\'ve done this before, but can\'t find it and SO will hopefull
In python3:
pip install python-dateutil
from dateutil.parser import tz mydt.astimezone(tz.gettz('UTC')).replace(tzinfo=None)