diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 6d2c0caa..fbee5944 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -153,7 +153,7 @@ def preattr(val): def is_actif(sanction): """ - Retourne True ou False suivant si la sanction fournie (cha-Aîne-b + Retourne True ou False suivant si la sanction fournie (chaîne venant de blacklist) est active ou non """ bl = sanction.split(',') @@ -473,7 +473,7 @@ class crans_ldap: return keep_date=[] for date in serv_dates[new[1:]]: - if time.time() < int(date): + if time.time() < int(date)+time.timezone: keep_date.append(date) if keep_date: self.conn.modify_s(remove_dn,ldap.modlist.modifyModlist({'start': serv_dates[new[1:]]}, { 'start': keep_date }))