We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e08ec2 commit 4653bb1Copy full SHA for 4653bb1
src/commands/core.c
@@ -33,7 +33,8 @@ cJSON* build_json_response_object(switch_bool_t success, const char *message) {
33
cJSON_AddBoolToObject(json, "success", success);
34
cJSON_AddStringToObject(json, "status", success ? "success" : "error");
35
cJSON_AddStringToObject(json, "message", message ? message : "");
36
- cJSON_AddNumberToObject(json, "timestamp", (double)switch_time_now());
+ double timestamp_ms = (double)switch_time_now() / 1000.0;
37
+ cJSON_AddNumberToObject(json, "timestamp", timestamp_ms);
38
39
if (globals.node_id && strlen(globals.node_id) > 0) {
40
cJSON_AddStringToObject(json, "node_id", globals.node_id);
0 commit comments