2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-08-04 16:37:00 +00:00

Change to use standard iso format

This commit is contained in:
Jarrod Johnson
2026-07-24 09:12:17 -04:00
parent 2fed3ddb57
commit 43c98552f4
+2 -1
View File
@@ -20,6 +20,7 @@ import json
import os
import tempfile
import time
import datetime
import yaml
try:
from yaml import CSafeDumper as SafeDumper
@@ -475,7 +476,7 @@ async def handle_request(req, make_response, mimetype):
if statusdetail:
stateupdate['deployment.state_detail'] = statusdetail
if stateupdate:
stateupdate['deployment.state_last_updated'] = time.strftime('%Y-%m-%dT%H:%M:%S%z', time.localtime())
stateupdate['deployment.state_last_updated'] = datetime.datetime.now().astimezone().isoformat()
await cfg.set_node_attributes({nodename: stateupdate})
if 'status' not in update and stateupdate:
mrsp = await make_response(mimetype, 200, 'Ok')