'EMAIL_USE_LOCALTIME=False creates a datetime in UTC.'

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

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