diff --git a/BSB_LAN/BSB_LAN.ino b/BSB_LAN/BSB_LAN.ino index 3d4d3a87..cb2c6a01 100644 --- a/BSB_LAN/BSB_LAN.ino +++ b/BSB_LAN/BSB_LAN.ino @@ -2159,12 +2159,9 @@ void generateConfigPage(void) { unsigned long h = m / 60; unsigned d = h / 24; printFmtToWebClient(PSTR(MENU_TEXT_UPT ": %lu\r\nms = %ud+%02lu:%02lu:%02lu.%03lu
\r\n"), ms, d, h%24, m%60, s%60, ms%1000); -#if defined(ESP32) - struct tm timeinfo; - if(getLocalTime(&timeinfo)){ - printFmtToWebClient(PSTR(ENUM_CAT_00_TEXT ": %02d.%02d.%02d %02d:%02d:%02d
\r\n"), timeinfo.tm_mday, timeinfo.tm_mon+1, timeinfo.tm_year-100, timeinfo.tm_hour, timeinfo.tm_min, timeinfo.tm_sec); - } -#endif + char *GetDateTime(char *date); // forward declaration, to avoid moving that function before this one here + char tmp_date[20]; + printFmtToWebClient(PSTR(ENUM_CAT_00_TEXT ": %s
\r\n"), GetDateTime(tmp_date)); #ifndef WEBCONFIG printlnToWebClient(PSTR(MENU_TEXT_BUS ": ")); int bustype = bus->getBusType();