Question

How can I get the admin's timezone?

  • 15 September 2022
  • 1 reply
  • 14 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

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.

Reply