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

Remove microseconds from the last updated timestamp

This commit is contained in:
Jarrod Johnson
2026-07-24 09:30:42 -04:00
parent 43c98552f4
commit d81ab1d239
+1 -1
View File
@@ -476,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'] = datetime.datetime.now().astimezone().isoformat()
stateupdate['deployment.state_last_updated'] = datetime.datetime.now().astimezone().replace(microsecond=0).isoformat()
await cfg.set_node_attributes({nodename: stateupdate})
if 'status' not in update and stateupdate:
mrsp = await make_response(mimetype, 200, 'Ok')