diff --git a/custom/2.3.1/apihandler/spawn_progress.py b/custom/2.3.1/apihandler/spawn_progress.py
index 3dcf35abd12392c2d1508dcb31d0dee7847f9521..e752fe1d3d07d2236de846a3ffac7967c9c0e4ce 100644
--- a/custom/2.3.1/apihandler/spawn_progress.py
+++ b/custom/2.3.1/apihandler/spawn_progress.py
@@ -86,7 +86,7 @@ class SpawnProgressUNICOREUpdateAPIHandler(APIHandler):
                 custom_config.get("unicore_updates", {}).get("bssStatus", {}).items()
             ):
                 if key == bssStatus:
-                    now = datetime.now().strftime("%Y_%m_%d %H:%M:%S.%f")[:-3]
+                    now = datetime.datetime.now().strftime("%Y_%m_%d %H:%M:%S.%f")[:-3]
                     summary = bssDetails.get("summary", f"Slurm status: {key}")
                     details = bssDetails.get(
                         "details",