fix(TimeMetrics Struct): parser of time metric from command argument

This commit is contained in:
doryan 2024-06-18 18:16:18 +04:00
parent da5edc1aac
commit f9a6c9645b

View File

@ -10,7 +10,7 @@ pub type ExtractedDuration = (NaiveDateTime, String, i64);
pub fn get_duration(time: TimeValues) -> ExtractedDuration {
let time_duration = time.0.extract();
let unmute_date = unrestrict_date(time_duration);
let unmute_date = unrestrict_date(time);
let postfix = CountableTime::from_value(time_duration)
.get_postfix(time.0)
.unwrap();