offset command. fix for timeparser not doing negatives properly on specified fields
This commit is contained in:
1 parent
9e737dc9d6
commit
4bd24ff94c
4 files changed
+63
-2
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user