How to get the timezone of the client? | Community
Skip to main content
Answered

How to get the timezone of the client?

  • January 26, 2021
  • 2 replies
  • 289 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. 🦄

2 replies

Roy
Top Expert ✨
Forum|alt.badge.img+5
  • Top Expert ✨
  • 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
  • January 27, 2021

Thanks i will try that.