I\'ve never had to convert time to and from UTC. Recently had a request to have my app be timezone aware, and I\'ve been running myself in circles. Lots of information on co
You can use arrow
from datetime import datetime import arrow now = datetime.utcnow() print(arrow.get(now).to('local').format()) # '2018-04-04 15:59:24+02:00'
you can feed arrow.get() with anything. timestamp, iso string etc
arrow.get()