- Implemented _parse_date method to convert dateTimeString to a UNIX … #33068
+27
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds functionality to parse the dateTimeString from events and return a valid timestamp for each event. The following changes have been made:
Implemented _parse_date method: This method parses the dateTimeString (in ISO 8601 format) and converts it into a UNIX timestamp. The timestamp is also adjusted to UTC before being returned.
Modified _real_extract method: The method now includes the parsed timestamp field in the returned event data.
This enhancement ensures that each event's timestamp is accurately parsed, providing consistent date/time information for further processing.
Additional Information:
The dateTimeString field is expected to be in ISO 8601 format (e.g., 2022-01-01T12:00:00-05:00).
The timestamp is now returned as part of the event data, which can be used for further processing or display.
This PR improves the extraction process by adding proper timestamp handling.