def convert_datestr(datestr):
    try:
        return dateutil.parser.parse(datestr)
    except (TypeError, ValueError, AttributeError):
        return None
directory: django-admin builtin commands fail if settings file (from environment) doesn't exist
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/utils/time.py/convert_datestr--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/admin_scripts/tests.py/DjangoAdminSettingsDirectory.test_builtin_with_bad_environment