fabacab / pat-facebook

Predator Alert Tool for Facebook --> Click this link to use the app:
https://apps.facebook.com/predator-alert-tool/
The Unlicense
12 stars 4 forks source link

Default timezone preference setting to whatever Facebook reports for the current user's timezone #66

Open fabacab opened 11 years ago

fabacab commented 11 years ago

When accessing information about a Facebook user, Facebook provides a timezone property that is an integer representing the user's offset from GMT. However, [PHP uses timezone identifiers that are strings](). So, find a way to translate from timezone offset to appropriate timezone identifier and then use that, dynamically. (I suppose the timezone preference stored in the database for the current user can be used as a fallback.)