set the time format

This commit is contained in:
Abraham Toriz 2021-06-25 11:28:15 -05:00
parent 3e71413815
commit fc5698dcfd
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ fn format_duration(dur: Duration) -> String {
}
fn format_time(t: NaiveTime) -> String {
format!("{: >2}:{:02}:{:02}", t.hour(), t.minute(), t.second())
format!("{:02}:{:02}:{:02}", t.hour(), t.minute(), t.second())
}
#[derive(Debug, Serialize, Deserialize)]