'EMAIL_USE_LOCALTIME=True creates a datetime in the local time zone.'

@override_settings(EMAIL_USE_LOCALTIME=True, USE_TZ=True, TIME_ZONE='Africa/Algiers')
def test_date_header_localtime(self):

    email = EmailMessage('Subject', 'Body', 'bounce@example.com', ['to@example.com'])
    self.assertTrue(email.message()['Date'].endswith('+0100'))
