mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
获取定时任务OK
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user