| 877 | } |
| 878 | |
| 879 | static 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 | |
| 887 | static 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) { |
no test coverage detected