Center the last line of the display

This commit is contained in:
2026-07-19 21:04:31 +01:00
parent d12b4da065
commit dde33ca5c3
+1 -1
View File
@@ -58,7 +58,7 @@ impl Screen<'_> {
self.do_print_at(5, display_data.status.as_ref().unwrap(), 0);
} else {
// Display date and time otherwise
self.do_print_at(5, &format!("Current time: {:02}/{:02}/{:4} {:02}:{:02}",
self.do_print_at(5, &format!(" Current time: {:02}/{:02}/{:4} {:02}:{:02}",
local_time.day(), local_time.month(), local_time.year(),
local_time.hour(), local_time.minute()
).to_string(), 0);