mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
localtim改为gmtime
This commit is contained in:
@@ -194,7 +194,7 @@ static time_t raspi_get_timestamp(void)
|
||||
static int raspi_set_timestamp(time_t timestamp)
|
||||
{
|
||||
struct tm *tblock;
|
||||
tblock = localtime(×tamp);
|
||||
tblock = gmtime(×tamp);
|
||||
buf[0] = 0;
|
||||
buf[1] = tblock->tm_sec;
|
||||
buf[2] = tblock->tm_min;
|
||||
|
||||
Reference in New Issue
Block a user