mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use same tzinfo as the time parser to avoid TypeError from being thrown
This commit is contained in:
parent
bf743087d2
commit
d3d89f754b
@ -13,7 +13,7 @@ def password_expires_in(datestr):
|
||||
if not expdate:
|
||||
return sys.maxint
|
||||
|
||||
delta = expdate - datetime.datetime.now()
|
||||
delta = expdate - datetime.datetime.now(ipautil.GeneralizedTimeZone())
|
||||
return delta.days
|
||||
|
||||
def password_is_expired(days):
|
||||
|
Loading…
Reference in New Issue
Block a user