MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ui_log_utc_now

Function ui_log_utc_now

src/ui/http_server.c:879–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877}
878
879static void ui_log_utc_now(char *out, size_t outsz) {
880 time_t now = time(NULL);
881 struct tm tm_utc;
882 if (cbm_gmtime_r(&now, &tm_utc) && strftime(out, outsz, "%Y-%m-%dT%H:%M:%SZ", &tm_utc) > 0)
883 return;
884 snprintf(out, outsz, "%lld", (long long)now);
885}
886
887static void handle_ui_log_post(cbm_http_conn_t *c, const cbm_http_req_t *req) {
888 if (req->body_len > UI_LOG_BODY_MAX) {

Callers 1

handle_ui_log_postFunction · 0.85

Calls 1

cbm_gmtime_rFunction · 0.85

Tested by

no test coverage detected