about summary refs log tree commit diff
path: root/scripts/authentication
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/authentication')
-rw-r--r--scripts/authentication/group.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/authentication/group.py b/scripts/authentication/group.py
index 7e73be15..ed17f260 100644
--- a/scripts/authentication/group.py
+++ b/scripts/authentication/group.py
@@ -133,7 +133,8 @@ if __name__ == "__main__":
 
     if not REDIS_CONN.hget("groups", data.get("field")):
         updated_data = json.loads(data["value"])
-        updated_data["created_timestamp"] = datetime.datetime.utcnow().strftime('%b %d %Y %I:%M%p')
+        timestamp = datetime.datetime.utcnow().strftime('%b %d %Y %I:%M%p')
+        updated_data["created_timestamp"] = timestamp
         data["value"] = json.dumps(updated_data)
 
     created_p = REDIS_CONN.hset(data.get("key", ""),