Skip to content

Commit b8d4154

Browse files
committed
Print LCD date in ISO 8601 format
This is unambiguous to interpret in all parts of the world, including the US, UK, and Europe.
1 parent b041571 commit b8d4154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lcd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ void LcdTask::displayInfoLine(LcdInfoLine line, unsigned long &nextUpdate)
546546
gettimeofday(&local_time, NULL);
547547
struct tm timeinfo;
548548
localtime_r(&local_time.tv_sec, &timeinfo);
549-
strftime(temp, sizeof(temp), "%d/%m/%Y", &timeinfo);
549+
strftime(temp, sizeof(temp), "%Y-%m-%d", &timeinfo);
550550
displayNameValue(1, "Date", temp);
551551
_updateInfoLine = false;
552552
} break;

0 commit comments

Comments
 (0)