Skip to content

Commit 3dc0198

Browse files
committed
Compensate for ESP32 2.0.2 time_t / localtime
1 parent 828d1ad commit 3dc0198

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Surveyor/menuSystem.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,8 @@ void printFileList()
990990

991991
char fileDateChar[20];
992992
snprintf(fileDateChar, 20, "%d-%02d-%02d",
993-
timeinfo->tm_year, //Year
994-
timeinfo->tm_mon, //Month
993+
timeinfo->tm_year + 1900, //Year - ESP32 2.0.2 starts the year at 1900...
994+
timeinfo->tm_mon + 1, //Month
995995
timeinfo->tm_mday //Day
996996
);
997997

0 commit comments

Comments
 (0)