59e68f7 ipa-epn: include timezone info

Authored and Committed by frenaud 9 months ago
    ipa-epn: include timezone info
    
    ipa-epn is using timezone-aware timestamps for "now"
    but converts krbpasswordexpiration attribute into
    a naive datetime object that is missing the tzinfo.
    
    It is not possible to substract timezone aware and
    naive values. Convert krbpasswordexpiration attribute
    into an UTC value before doing the substration.
    
    Related: https://pagure.io/freeipa/issue/9425
    
    Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    
        
file modified
+1 -1