offset command. fix for timeparser not doing negatives properly on specified fields

This commit is contained in:
jude
2020-09-01 18:18:45 +01:00
parent 9e737dc9d6
commit 4bd24ff94c
4 changed files with 63 additions and 2 deletions

View File

@ -172,7 +172,7 @@ impl TimeParser {
}
}
let full = seconds + (minutes * 60) + (hours * 3600) + (days * 86400) + current_buffer.parse::<i64>().unwrap() *
let full = (seconds + (minutes * 60) + (hours * 3600) + (days * 86400) + current_buffer.parse::<i64>().unwrap()) *
if self.inverted { -1 } else { 1 };
Ok(full)