[8.7] [Unified search] Add locale to the date picker (#151258) (#151348)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Unified search] Add locale to the date picker
(#151258)](https://github.com/elastic/kibana/pull/151258)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2023-02-15T17:19:18Z","message":"[Unified
search] Add locale to the date picker (#151258)\n\n##
Summary\r\n\r\nPart of
https://github.com/elastic/kibana/issues/151051\r\nPasses the locale to
the Date Picker Component\r\n\r\n<img width=\"479\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/17003240/218985020-82046718-15bf-4684-8445-29db6c50a8f7.png\">","sha":"79b0f04d77b80dafc1de24748ad68a7d2acad3c8","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","Feature:Unified
search","backport:prev-minor","v8.7.0","v8.8.0"],"number":151258,"url":"https://github.com/elastic/kibana/pull/151258","mergeCommit":{"message":"[Unified
search] Add locale to the date picker (#151258)\n\n##
Summary\r\n\r\nPart of
https://github.com/elastic/kibana/issues/151051\r\nPasses the locale to
the Date Picker Component\r\n\r\n<img width=\"479\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/17003240/218985020-82046718-15bf-4684-8445-29db6c50a8f7.png\">","sha":"79b0f04d77b80dafc1de24748ad68a7d2acad3c8"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/151258","number":151258,"mergeCommit":{"message":"[Unified
search] Add locale to the date picker (#151258)\n\n##
Summary\r\n\r\nPart of
https://github.com/elastic/kibana/issues/151051\r\nPasses the locale to
the Date Picker Component\r\n\r\n<img width=\"479\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/17003240/218985020-82046718-15bf-4684-8445-29db6c50a8f7.png\">","sha":"79b0f04d77b80dafc1de24748ad68a7d2acad3c8"}}]}]
BACKPORT-->

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
Kibana Machine 2023-02-15 13:23:34 -05:00 committed by GitHub
parent bc3874b110
commit f6c404bb81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -405,6 +405,7 @@ export const QueryBarTopRow = React.memo(
onRefreshChange={props.onRefreshChange}
showUpdateButton={false}
recentlyUsedRanges={recentlyUsedRanges}
locale={i18n.getLocale()}
commonlyUsedRanges={commonlyUsedRanges}
dateFormat={uiSettings.get('dateFormat')}
isAutoRefreshOnly={showAutoRefreshOnly}