Answered

How to get the timezone of the client?

  • 26 January 2021
  • 2 replies
  • 143 views

Badge +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) ?

icon

Best answer by Roy 27 January 2021, 12:07

View original

2 replies

Userlevel 1
Badge

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. 🦄

Badge +1

Thanks i will try that.

Reply