Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for RFC3339 time zone offsets in JSON output #13227

Merged
merged 1 commit into from
Aug 26, 2019
Merged

Add support for RFC3339 time zone offsets in JSON output #13227

merged 1 commit into from
Aug 26, 2019

Conversation

mvitaly
Copy link
Contributor

@mvitaly mvitaly commented Aug 13, 2019

I saw the TODO in code as we have a company standard to log in local timezone, so wanted to add support for local timezone as the JSON output

@mvitaly mvitaly requested a review from a team as a code owner August 13, 2019 01:21
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

1 similar comment
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

return MakeUTCOrLocalTimestampEncoder(false)
}

func MakeUTCOrLocalTimestampEncoder(localTime bool) func(*time.Time, structform.ExtVisitor) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function MakeUTCOrLocalTimestampEncoder should have comment or be unexported

return MakeUTCOrLocalTimestampEncoder(false)
}

func MakeUTCOrLocalTimestampEncoder(localTime bool) func(*time.Time, structform.ExtVisitor) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function MakeUTCOrLocalTimestampEncoder should have comment or be unexported

return MakeUTCOrLocalTimestampEncoder(false)
}

func MakeUTCOrLocalTimestampEncoder(localTime bool) func(*time.Time, structform.ExtVisitor) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function MakeUTCOrLocalTimestampEncoder should have comment or be unexported

@faec
Copy link
Contributor

faec commented Aug 13, 2019

Thanks! Can you add the function comments above, and run make fmt update? I think the latter should format your code and unstick the CI build.

@mvitaly
Copy link
Contributor Author

mvitaly commented Aug 13, 2019 via email

@faec
Copy link
Contributor

faec commented Aug 20, 2019

jenkins, test this

Copy link
Contributor

@faec faec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@faec
Copy link
Contributor

faec commented Aug 21, 2019

Actually one more thing before merge: can you update the changelog? Just add a one-line summary in CHANGELOG.next.asciidoc at the bottom of Added -> All beats. Thanks!

@faec faec merged commit de68f5c into elastic:master Aug 26, 2019
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.

5 participants