projects
/
xsetrootd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Pad minute value in time display string
[xsetrootd.git]
/
src
/
main.rs
diff --git
a/src/main.rs
b/src/main.rs
index
e128efe
..
ca15fa2
100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-38,7
+38,7
@@
fn get_local_time_string() -> std::string::String {
use chrono::prelude::*;
let local_time = chrono::prelude::Local::now();
return format!(
- "{}-{}-{:02} {}:{}",
+ "{}-{}-{:02} {}:{
:02
}",
local_time.year(),
local_time.month(),
local_time.day(),