diff --git a/certbot/tests/main_test.py b/certbot/tests/main_test.py index d2c19a5d1..4c063f1e6 100644 --- a/certbot/tests/main_test.py +++ b/certbot/tests/main_test.py @@ -1786,7 +1786,7 @@ class ReportNewCertTest(unittest.TestCase): self.notafter_patch = mock.patch('certbot._internal.main.crypto_util.notAfter') self.mock_notafter = self.notafter_patch.start() - self.mock_notafter.return_value = datetime.fromtimestamp(0) + self.mock_notafter.return_value = datetime.utcfromtimestamp(0) def tearDown(self): self.notify_patch.stop()