def from_utc_to_local(local_offset, timeframe):
    offset = str((local_offset * (- 1)))
    date_split = str(timeframe).split('.')[0]
    date_converted = (datetime.datetime.strptime(date_split, '%Y-%m-%d %H:%M:%S') + datetime.timedelta(minutes=int(offset)))
    return date_converted
def from_utc_to_local(local_offset, timeframe):
    offset = str((local_offset * (- 1)))
    date_split = str(timeframe).split('.')[0]
    date_converted = (datetime.datetime.strptime(date_split, '%Y-%m-%d %H:%M:%S') + datetime.timedelta(minutes=int(offset)))
    return date_converted