mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 15:52:08 -04:00
Use timedelta instead of now.month + 1 (partially fixes: #456).
`ValueError: day is out of range for month`
This commit is contained in:
parent
325f2ae4ad
commit
2ae9bf3d49
1 changed files with 1 additions and 2 deletions
|
|
@ -125,10 +125,9 @@ def gen_authzr(authz_status, domain, challs, statuses, combos=True):
|
|||
if combos:
|
||||
authz_kwargs.update({"combinations": gen_combos(challbs)})
|
||||
if authz_status == messages2.STATUS_VALID:
|
||||
now = datetime.datetime.now()
|
||||
authz_kwargs.update({
|
||||
"status": authz_status,
|
||||
"expires": datetime.datetime(now.year, now.month + 1, now.day),
|
||||
"expires": datetime.datetime.now() + datetime.timedelta(days=31),
|
||||
})
|
||||
else:
|
||||
authz_kwargs.update({
|
||||
|
|
|
|||
Loading…
Reference in a new issue