Skip to content

[7.x] [Data Plugin] Allow server-side date formatters to accept custom timezone (#70668)#71556

Merged
tsullivan merged 1 commit intoelastic:7.xfrom
tsullivan:backport/7.x/pr-70668
Jul 14, 2020
Merged

[7.x] [Data Plugin] Allow server-side date formatters to accept custom timezone (#70668)#71556
tsullivan merged 1 commit intoelastic:7.xfrom
tsullivan:backport/7.x/pr-70668

Conversation

@tsullivan
Copy link
Member

Backports the following commits to 7.x:

…zone (elastic#70668)

* [Data Plugin] Allow server-side date formatters to accept custom timezone

When Advanced Settings shows the date format timezone to be "Browser,"
this means nothing to field formatters in the server-side context. The
field formatters need a way to accept custom format parameters. This
allows a server-side module that creates a FieldFormatMap to set a
timezone as a custom parameter. When custom formatting parameters exist,
they get combined with the defaults.

* add more to tests - need help though

* simplify changes

* api doc changes

* fix src/plugins/data/public/field_formats/constants.ts

* rerun api changes

* re-use public code in server, add test

* fix path for tests

* weird api change needed but no real diff

* 3td time api doc chagens

* move shared code to common

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@tsullivan tsullivan added the backport This PR is a backport of another PR label Jul 13, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@tsullivan tsullivan merged commit ed0d26f into elastic:7.x Jul 14, 2020
@tsullivan tsullivan deleted the backport/7.x/pr-70668 branch September 3, 2020 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants