mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
解决时区问题
This commit is contained in:
@@ -103,7 +103,8 @@ char* GetTaskStr()
|
||||
{
|
||||
char buffer[26];
|
||||
struct tm* tm_info;
|
||||
tm_info = localtime(&tmp_tsk->prs_time);
|
||||
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);
|
||||
|
||||
sprintf(tmp_str, "{'prs_time':'%s','socket_idx':%d,'on':%d},",
|
||||
|
||||
Reference in New Issue
Block a user