from datetime import timezone timestamp = dt.replace(tzinfo=timezone.utc).timestamp()
dt_object = datetime.fromtimestamp(timestamp)