获取定时任务OK

This commit is contained in:
zogodo
2020-02-22 17:31:52 +08:00
parent a67b152829
commit 6aa012c620
3 changed files with 2903 additions and 2869 deletions

View File

@@ -105,7 +105,7 @@ char* GetTaskStr()
struct tm* tm_info;
time_t prs_time = tmp_tsk->prs_time + 28800;
tm_info = localtime(&prs_time);
strftime(buffer, 26, "%Y-%m-%d %H:%M:%S", tm_info);
strftime(buffer, 26, "%m-%d %H:%M:%S", tm_info);
sprintf(tmp_str, "{'prs_time':'%s','socket_idx':%d,'on':%d},",
buffer, tmp_tsk->socket_idx, tmp_tsk->on);