Skip to main content

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!

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