summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2016-11-17 21:21:06 -0700
committerBert JW Regeer <bertjw@regeer.org>2016-11-17 22:42:15 -0700
commit5be7ff4c90a5d0f28928159cc16588504812b3b2 (patch)
treebe601fbcf403cd3190f8805608a526214724ceea
parentec0b058ab9819837ae662f829fba893f39760fe9 (diff)
downloadwebob-bugfix/set_cookie_datetime.tar.gz
Add documentation that datetime should be in the futurebugfix/set_cookie_datetime
-rw-r--r--webob/response.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/webob/response.py b/webob/response.py
index 9a606de..94de6f2 100644
--- a/webob/response.py
+++ b/webob/response.py
@@ -1026,6 +1026,9 @@ class Response(object):
local time are not supported. Timezone aware ``datetime.datetime``
objects are converted to UTC.
+ ``expires`` should be set in the future, if it is set in the past a
+ RuntimeWarning will be issued.
+
This argument will be removed in future
versions of WebOb (version 1.9).