

@skipUnlessDBFeature('supports_timezones')
def test_aware_datetime_in_local_timezone(self):
    dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
    Event.objects.create(dt=dt)
    event = Event.objects.get()
    self.assertIsNone(event.dt.tzinfo)
    self.assertEqual(event.dt.replace(tzinfo=EAT), dt)

dataset/ETHPy150Open django/django/tests/timezones/tests.py LegacyDatabaseTests.test_aware_datetime_in_local_timezone/original