Skip to content

Commit

Permalink
fix(main): fixed time fmt parse error to regular json input file #1083
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed May 16, 2024
1 parent 5a4290b commit cf4027d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1822,7 +1822,7 @@ impl App {
&target_timestamp
.to_string()
.replace("\\\"", "")
.replace('"', ""),
.replace(['"', '\''], ""),
time_fmt,
) {
Ok(without_timezone_datetime) => Some(DateTime::<Utc>::from_naive_utc_and_offset(
Expand Down Expand Up @@ -1993,7 +1993,7 @@ impl App {
target_event_ids,
stored_static,
),
(false, true),
(is_splunk_json, is_splunk_api_json),
&splunk_api_record,
) {
records_per_detect.push((splunk_api_record.to_owned(), false));
Expand Down Expand Up @@ -2050,7 +2050,7 @@ impl App {
target_event_ids,
stored_static,
),
(true, false),
(is_splunk_json, is_splunk_api_json),
&data,
) {
records_per_detect.push((data.to_owned(), false));
Expand Down

0 comments on commit cf4027d

Please sign in to comment.