From: Tony Mack Date: Thu, 30 Jun 2011 22:47:31 +0000 (-0400) Subject: remove timezone info from credential's expires timestamp X-Git-Tag: sfa-1.0-27~42 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f4d11e21430b0c17645182e4efe05325a831f9fd;p=sfa.git remove timezone info from credential's expires timestamp --- diff --git a/sfa/managers/aggregate_manager_pl.py b/sfa/managers/aggregate_manager_pl.py index 78aebb91..d33a002a 100644 --- a/sfa/managers/aggregate_manager_pl.py +++ b/sfa/managers/aggregate_manager_pl.py @@ -79,7 +79,7 @@ def __get_registry_objects(slice_xrn, creds, users): slice = {} - extime = Credential(string=creds[0]).get_expiration() + extime = Credential(string=creds[0]).get_expiration().replace(tzinfo=None) # 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)