from dateutil import tz


def to_local_time_zone(date_input):
    """Returns datetime object transformed to the local time zone.

    Args:
        date_input (datetime): value to be transformed.
    """
    if date_input.tzinfo is None:
        return date_input
    else:
        return date_input.astimezone(tz.tzlocal()).replace(tzinfo=None)