set the time format
This commit is contained in:
parent
3e71413815
commit
fc5698dcfd
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue