Parse timezone int to string (timezone name) (facebook api)

后端 未结 2 1424
南旧
南旧 2020-12-04 03:14

How do you convert a timezone from int to string (etc: Europe/Stockholm)?

I\'m using Facebooks PHP api and that returns

2条回答
  •  一个人的身影
    2020-12-04 03:45

    You can get the timezone name by using timezone_name_from_abbr("", $value*3600, false);. $value is the timezone offset you get from Facebook.

    Thanks to minaz.

提交回复
热议问题