title: Python Cookielib with HTTP Servers that Have Incorrect Date / Timezone Set
body: <p>I am using python and <code>cookielib</code> to talk to an HTTP server that has its date incorrectly set. I have no control over this server, so fixing its time is not a possibility. Unfortunately, the server's incorrect time messes up <code>cookielib</code> because the cookies appear to be expired.</p>
  
  <p>Interestingly, if I go to the same website with any web browser, the browser accepts the cookie and it gets saved. I assume that modern webbrowsers come across misconfigured web servers all the time and see that their <code>Date</code> header is set incorrectly, and adjust cookie expiration dates accordingly.</p>
  
  <p>Has anyone come across this problem before? Is there any way of handling it within Python?</p>
  
  <p><a href="https://i.stack.imgur.com/6HmuF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6HmuF.png" alt="bad server date"></a></p>