1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-12 13:33:06 +01:00

Fix Date Time format for < 9 AM (one character)

This commit is contained in:
norbert-walter
2022-01-25 09:51:21 +01:00
parent 9d0799f2cf
commit a056538201

View File

@@ -114,7 +114,7 @@ void showPage(busData values){
hour += values.timezone + 24;
}
hour %= 24;
sprintf(newhour, "%d", hour);
sprintf(newhour, "%02d", hour);
newtime[0] = newhour[0];
newtime[1] = newhour[1];
display.print(newtime);