Skip to main content
Solved

Time zone in rest api


Forum|alt.badge.img

Hello, good morning. I would like to know how to change the time zone in the rest api and obtain the data correctly

Best answer by Saish Redkar

Thanks for elaborating further.
Looks like the timezone selector only works in the chart’s date picker UI.

I’m not sure if the Dashboard REST API is modified to allow for adding the timezone as an api parameter as I don’t see anything in the public docs yet.

For now, only the API’s existing chart endpoint can be used to fetch a saved chart after changing the timezone in the datepicker.

View original
Did this topic help you find an answer to your question?

7 replies

Forum|alt.badge.img

I would like get my data but with the correct time zone 


Saish Redkar
Expert
Forum|alt.badge.img+10

Hi @Brandon Henao 
If you are referring to the Dashboard REST API, then its time zone is the same as your Amplitude project's time zone. So changing the project time zone accordingly will help you get the correct data via the API.


Forum|alt.badge.img

Hi @Saish Redkar , Thanks , yeah already read the documentation , but I would like to set the time zone without set the project  , like this

but with the Rest Api.


Forum|alt.badge.img

Is it possible to do this?


Saish Redkar
Expert
Forum|alt.badge.img+10
  • Expert
  • 1377 replies
  • Answer
  • July 24, 2023

Thanks for elaborating further.
Looks like the timezone selector only works in the chart’s date picker UI.

I’m not sure if the Dashboard REST API is modified to allow for adding the timezone as an api parameter as I don’t see anything in the public docs yet.

For now, only the API’s existing chart endpoint can be used to fetch a saved chart after changing the timezone in the datepicker.


Forum|alt.badge.img
Saish Redkar wrote:

Thanks for elaborating further.
Looks like the timezone selector only works in the chart’s date picker UI.

I’m not sure if the Dashboard REST API is modified to allow for adding the timezone as an api parameter as I don’t see anything in the public docs yet.

For now, only the API’s existing chart endpoint can be used to fetch a saved chart after changing the timezone in the datepicker.

Thank you so much.


@Brandon Henao @Saish Redkar Is there any update here? am looking for same—timezone parameter in REST API. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings