Skip to content

Commit 47d6367

Browse files
committed
fix: use variable %.f for timestamp parsing
1 parent ff392fa commit 47d6367

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hunt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ impl Hunter {
875875
Some(timestamp) => {
876876
match NaiveDateTime::parse_from_str(
877877
timestamp,
878-
"%Y-%m-%dT%H:%M:%S%.6fZ",
878+
"%Y-%m-%dT%H:%M:%S%.fZ",
879879
) {
880880
Ok(t) => t,
881881
Err(e) => {

src/search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl Iterator for Iter<'_> {
7474
| Document::Esedb(json) => match json.find(field) {
7575
Some(value) => match value.as_str() {
7676
Some(timestamp) => {
77-
NaiveDateTime::parse_from_str(timestamp, "%Y-%m-%dT%H:%M:%S%.6fZ")
77+
NaiveDateTime::parse_from_str(timestamp, "%Y-%m-%dT%H:%M:%S%.fZ")
7878
}
7979
None => continue,
8080
},

0 commit comments

Comments
 (0)