fix firmware install date (was using UTC as TZ not initialised)

This commit is contained in:
proddy
2026-04-19 14:17:31 +02:00
parent 51cea8e757
commit b0db054e11
3 changed files with 32 additions and 18 deletions

View File

@@ -75,7 +75,7 @@ enum FUSE_VALUE : uint8_t { ALL = 0, MFG = 1, MODEL = 2, BOARD = 3, REV = 4, BAT
struct PartitionInfo {
std::string version;
size_t size;
std::string install_date; // optional, only available if NTP is connected
time_t install_date; // UTC epoch seconds; 0 if unknown. Format with localtime() at render time so it honors the current TZ.
};
class System {