Center the last line of the display
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user