# Get "Time picker defaults"

**URL:** <https://discuss.elastic.co/t/get-time-picker-defaults/239630>\
**Category:** Kibana\
**Created:** [July 2, 2020, 12:30pm UTC](https://discuss.elastic.co/t/get-time-picker-defaults/239630 "2020-07-02T12:30:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![masterThomas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/masterthomas/32/42765_2.png) [@masterThomas](https://discuss.elastic.co/u/masterThomas)\
**Post date:** [July 2, 2020, 12:30pm UTC](https://discuss.elastic.co/t/get-time-picker-defaults/239630/1 "2020-07-02T12:30:08Z")

</div>

Hi team, can anybody help to receive "Time picker defaults" value from advanced settings in Kibana? What is the index or file where it`s placed? My task is to refer to the parameter in my custom plugin.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [July 2, 2020, 1:36pm UTC](https://discuss.elastic.co/t/get-time-picker-defaults/239630/2 "2020-07-02T13:36:25Z")

</div>

All advanced settings are stored in a special saved object of type `config`. However, if you are developing a custom plugin there should be a config service available everywhere as well that has already fetched all of these values.

In the recent versions of Kibana it's the `core.uiSettings` service - it's used all over the place.  
In older versions (when still working with angular), you should be able to get a `config` service injected providing the same functionality.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 30, 2020, 1:36pm UTC](https://discuss.elastic.co/t/get-time-picker-defaults/239630/3 "2020-07-30T13:36:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
