def datetime_is_naive(dateTime):
    return dateTime.tzinfo is None or dateTime.tzinfo.utcoffset(dateTime) is None


# Remove timezone information.
Returns True if dateTime is naive.
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/utils/dt.py/datetime_is_naive