9b84183
From 4bff1e93d2dd4663d422d7e290473d9189cec5db Mon Sep 17 00:00:00 2001
9b84183
From: Dominique Leuenberger <dimstar@opensuse.org>
9b84183
Date: Sun, 31 Dec 2017 15:11:16 +0100
9b84183
Subject: [PATCH] Move RECENT_DATE to 2017-06-30
9b84183
9b84183
The test suite expects the current date to be no more than two years in the future
9b84183
of RECENT_DATE, which just serves as a reference point.
9b84183
9b84183
Also clarify the comment about how to update RECENT_DATE
9b84183
9b84183
Fixes #1303
9b84183
9b84183
diff --git a/urllib3/connection.py b/urllib3/connection.py
9b84183
index 06bcbde1a..a03b573f0 100644
9b84183
--- a/urllib3/connection.py
9b84183
+++ b/urllib3/connection.py
9b84183
@@ -56,10 +56,11 @@ class ConnectionError(Exception):
9b84183
     'https': 443,
9b84183
 }
9b84183
 
9b84183
-# When updating RECENT_DATE, move it to
9b84183
-# within two years of the current date, and no
9b84183
-# earlier than 6 months ago.
9b84183
-RECENT_DATE = datetime.date(2016, 1, 1)
9b84183
+# When updating RECENT_DATE, move it to within two years of the current date,
9b84183
+# and not less than 6 months ago.
9b84183
+# Example: if Today is 2018-01-01, then RECENT_DATE should be any date on or
9b84183
+# after 2016-01-01 (today - 2 years) AND before 2017-07-01 (today - 6 months)
9b84183
+RECENT_DATE = datetime.date(2017, 6, 30)
9b84183
 
9b84183
 
9b84183
 class DummyConnection(object):