Home how to convert facebook's userinfo timzone field to Time Zone name?
Reply: 0

how to convert facebook's userinfo timzone field to Time Zone name?

user821
1#
user821 Published in May 27, 2018, 1:26 am

This question already has an answer here:

  • Parse timezone int to string (timezone name) (facebook api) 2 answers

I am getting user info from facebook after using oauth2 access_token

{
 ...
 "timezone": 5.5,
}

now I need to convert this to Zone Name to fill the openid connect zoneinfo filed.

ex : "Asia/Calcutta"

I am requesting from India , in timezone map I am seeing +05:30 is correct one. but facebook is issuing 5.5 I am not able solve this issue. please help me on this.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.311073 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO