Don't needlessly display a minimum of 1 minutes

This commit is contained in:
FichteFoll 2021-12-10 12:07:24 +01:00
parent eed6aa1ac7
commit 2e35ff377b

View File

@ -157,7 +157,7 @@ impl TimeSheet {
}
fn format_duration(d: &Duration) -> String {
format!("{}:{:02}", d.whole_hours(), d.whole_minutes().max(1) % 60)
format!("{}:{:02}", d.whole_hours(), d.whole_minutes() % 60)
}
impl ListView<TimePoint> for TimeSheet {