[Bugfix] Fix seconds value returned by get_hms()
This commit is contained in:
parent
8968507d29
commit
d9017d447a
@ -90,7 +90,7 @@ pub fn get_hms(config: &Option<Config>, which: DayPart) -> (u8, u8, u8) {
|
||||
let hours = seconds / 3600;
|
||||
seconds -= hours * 3600;
|
||||
let minutes = seconds / 60;
|
||||
seconds -= hours * 60;
|
||||
seconds -= minutes * 60;
|
||||
|
||||
(hours as u8, minutes as u8, seconds as u8)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user