projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43d34e2
)
修复时间戳解析函数
author
Caisking
<3449750381@qq.com>
Sat, 15 Jun 2024 10:07:51 +0000
(18:07 +0800)
committer
Caisking
<3449750381@qq.com>
Sat, 15 Jun 2024 10:07:51 +0000
(18:07 +0800)
code/sdk/drivers/peripheral/utils/custom_utils.c
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/utils/custom_utils.c
b/code/sdk/drivers/peripheral/utils/custom_utils.c
index
8c3d814
..
216d4b5
100644
(file)
--- a/
code/sdk/drivers/peripheral/utils/custom_utils.c
+++ b/
code/sdk/drivers/peripheral/utils/custom_utils.c
@@
-799,7
+799,7
@@
errcode_t uapi_get_TIME_STR(uint32_t time,char *p_time, char separator, bool inc
}
time_t rawtime = (time_t)time;
- struct tm *timeinfo =
local
time(&rawtime);
+ struct tm *timeinfo =
gm
time(&rawtime);
if (timeinfo == NULL)
{