localtim改为gmtime

This commit is contained in:
Meco Man
2021-02-07 21:49:25 +08:00
parent 64bd41d654
commit 86ebf17a23
20 changed files with 29 additions and 29 deletions

View File

@@ -194,7 +194,7 @@ static time_t raspi_get_timestamp(void)
static int raspi_set_timestamp(time_t timestamp)
{
struct tm *tblock;
tblock = localtime(&timestamp);
tblock = gmtime(&timestamp);
buf[0] = 0;
buf[1] = tblock->tm_sec;
buf[2] = tblock->tm_min;