projects
/
xsetrootd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e7a1f7
)
Pad minute value in time display string
author
Jacob Casper
<dev@jacobcasper.com>
Mon, 9 Nov 2020 17:13:09 +0000
(11:13 -0600)
committer
Jacob Casper
<dev@jacobcasper.com>
Mon, 9 Nov 2020 17:13:09 +0000
(11:13 -0600)
src/main.rs
patch
|
blob
|
blame
|
history
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(),