Skip to content

Use RFC3339 format for timestamps in SQL module#15847

Merged
jsoriano merged 2 commits intoelastic:masterfrom
jsoriano:fix-sql-date-format
Jan 27, 2020
Merged

Use RFC3339 format for timestamps in SQL module#15847
jsoriano merged 2 commits intoelastic:masterfrom
jsoriano:fix-sql-date-format

Conversation

@jsoriano
Copy link
Copy Markdown
Member

What does this PR do?

Format timestamps collected with the SQL module using the RFC3339 Nano format,
that includes the timezone and is a more precise representation.

Why is it important?

So timezone information and precission is not lost when formatting the timestamps
for the final event.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works

This way timezone and more precise information is stored in the final
events in case they are lately parsed as dates.
@jsoriano jsoriano added bug review needs_backport PR is waiting to be backported to other branches. Team:Integrations Label for the Integrations team labels Jan 25, 2020
@jsoriano jsoriano requested a review from a team as a code owner January 25, 2020 18:28
@jsoriano jsoriano self-assigned this Jan 25, 2020
@jsoriano jsoriano merged commit 121f19d into elastic:master Jan 27, 2020
@jsoriano jsoriano deleted the fix-sql-date-format branch January 27, 2020 11:52
@jsoriano jsoriano removed the needs_backport PR is waiting to be backported to other branches. label Jan 27, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Jan 27, 2020
This way timezone and more precise information is stored in the final
events in case they are lately parsed as dates.

(cherry picked from commit 121f19d)
jsoriano added a commit to jsoriano/beats that referenced this pull request Jan 27, 2020
This way timezone and more precise information is stored in the final
events in case they are lately parsed as dates.

(cherry picked from commit 121f19d)
jsoriano added a commit that referenced this pull request Jan 27, 2020
This way timezone and more precise information is stored in the final
events in case they are lately parsed as dates.

(cherry picked from commit 121f19d)
jsoriano added a commit that referenced this pull request Jan 27, 2020
This way timezone and more precise information is stored in the final
events in case they are lately parsed as dates.

(cherry picked from commit 121f19d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants