How can I get the admin's timezone? | Community
Skip to main content
Question

How can I get the admin's timezone?

  • September 15, 2022
  • 1 reply
  • 87 views

I've built an app that is returning a list of items with a formatted date like 6 June 2022 12:02am. I format the date on the backend side, so it's based on server's timezone.

How can I get the admin's timezone, and format the items based on admin local time?

 

Thank you!

1 reply

  • Author
  • New Participant
  • September 16, 2022

I think that I found a way. Based on user token, I call https://api.intercom.io/meand I get the timezone from there.

Thank you.