even safer handling of expiration types across
[sfa.git] / sfa / managers / aggregate_manager_pl.py
index 5fcd6ef..0dd236c 100644 (file)
@@ -79,7 +79,8 @@ def __get_registry_objects(slice_xrn, creds, users):
 
         slice = {}
         
-        extime = utcparse(Credential(string=creds[0]).get_expiration())
+        # get_expiration always returns a normalized datetime - no need to utcparse
+        extime = Credential(string=creds[0]).get_expiration()
         # If the expiration time is > 60 days from now, set the expiration time to 60 days from now
         if extime > datetime.datetime.utcnow() + datetime.timedelta(days=60):
             extime = datetime.datetime.utcnow() + datetime.timedelta(days=60)