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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user