def local_to_utc(dt):
    return dt.replace(tzinfo=tz.tzlocal()).astimezone(tz.tzutc())
Convert naive datetime to UTC, assuming local time zone.
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/local_to_utc