diff --git a/components/libc/compilers/common/ctime.c b/components/libc/compilers/common/ctime.c index 19cd789bed..c1573bf661 100644 --- a/components/libc/compilers/common/ctime.c +++ b/components/libc/compilers/common/ctime.c @@ -383,6 +383,7 @@ int stime(const time_t *t) } tv.tv_sec = *t; + tv.tv_usec = 0; if (set_timeval(&tv) == RT_EOK) { return 0;