修改获rtc取时间代码

This commit is contained in:
fize 2022-06-22 09:56:41 +08:00
parent 817774b043
commit 8d00c17d2d

View File

@ -1955,7 +1955,7 @@ extern gtime_t timeget(void)
{ {
gtime_t now; gtime_t now;
now.time =time(RT_NULL); now.time =time(RT_NULL);
now.sec =time(RT_NULL); now.sec = 0;
return timeadd(now, timeoffset_); return timeadd(now, timeoffset_);
} }
/* set current time in utc ----------------------------------------------------- /* set current time in utc -----------------------------------------------------