Skip to main content
Answered

How to get the timezone of the client?

  • January 26, 2021
  • 2 replies
  • 227 views

Forum|alt.badge.img+1

I want to get the timezone of the client who is chatting with us. Since based on his time zone, i want to show some time values, in the messenger. How can i get the timezone of the client while we are called in API (ex: configure, initialize, etc) ?

Best answer by Roy

Hi @rajabdeen​ , It's not possible to get timezone via API, workaround here:

You can get contact location details (Country, Region, City) via API, then find a specific time zone on your end.

 

To get contact location information, you should use Retrieve contact API.

============================

"location": {

"type": "location",

"country": "Ireland",

"region": "Dublin",

"city": "Dublin"

},

============================

I hope this will be helpful, Let me know if there any further questions. 🦄

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

2 replies

Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • Answer
  • January 27, 2021

Hi @rajabdeen​ , It's not possible to get timezone via API, workaround here:

You can get contact location details (Country, Region, City) via API, then find a specific time zone on your end.

 

To get contact location information, you should use Retrieve contact API.

============================

"location": {

"type": "location",

"country": "Ireland",

"region": "Dublin",

"city": "Dublin"

},

============================

I hope this will be helpful, Let me know if there any further questions. 🦄


Forum|alt.badge.img+1
  • Author
  • Active User
  • 17 replies
  • January 27, 2021

Thanks i will try that.


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