Skip to content

Commit

Permalink
fix (RSS): do not use timezone datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Aug 25, 2024
1 parent 7c8eedd commit 95f0745
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""
import errno
import sys
from datetime import datetime, timedelta, timezone
from datetime import datetime, timedelta

from DIRAC import S_ERROR, S_OK
from DIRAC.AccountingSystem.Client.DataStoreClient import gDataStoreClient
Expand Down Expand Up @@ -204,7 +204,7 @@ def _cleanCommand(self, toDelete=None):
toDelete = []

res = self.rmClient.selectSpaceTokenOccupancyCache(
meta={"older": ["LastCheckTime", datetime.now(timezone.utc) - timedelta(hours=6)]}
meta={"older": ["LastCheckTime", datetime.utcnow() - timedelta(hours=6)]}
)
if not res["OK"]:
return res
Expand Down

0 comments on commit 95f0745

Please sign in to comment.