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

PR #104265 - util/log: MVP of customizable tz support for the datetime field #17267

Closed
cockroach-teamcity opened this issue Jun 15, 2023 · 0 comments

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Jun 15, 2023

Exalate commented:

Related PR: cockroachdb/cockroach#104265
Commit: cockroachdb/cockroach@24e577a
Fixes: CRDB-5594 CRDB-19901


Release note (cli change): The json log output format now recognizes
the extra format option datetime-timezone which selects which timezone
to use when formatting the datetime field.
datetime-timezone must be combined with datetime-format because
the default value for the latter option is none, i.e. datetime
is not produced by default.

For example:

sinks:
  fluent-groups:
     custom-json:
        format: json
        format-options: {datetime-format: rfc3339, datetime-timezone: America/New_York}

Jira Issue: DOC-8100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants