def make_date_aware(date_str):
    try:
        year, month, day = [int(x) for x in date_str.split('-')]
        dt = datetime.datetime(year, month, day)
        dt_aware = timezone.make_aware(dt, timezone.get_current_timezone())
        return dt_aware
    except:
        print traceback.print_exc()
        return None
Test for checking we don't allow queries by default.
dataset/ETHPy150Open gwu-libraries/social-feed-manager/docker/app-prod/m5_002/utils.py/make_date_aware--crossover with--dataset/ETHPy150Open google/grr/grr/checks/time_test.py/TimeSyncTests.testNtpDoesntAllowOpenQueries