4ormat/fb_graph — comment on commit b664702625b039738c02b44d5986f2755ff40715
File:  line 0
By tylerrooney:

Hi Nov,

Thanks for asking. You are a truly dedicated gem maintainer.

If your Facebook application has page_hours_format set to "unix timestamp format" the values returned in hours are integers and Time.parse will throw an error. I only realized this was the issue after deploying this hacked gem.

Here's a sample result.

```json
{
"hours": {
"mon_1_open": 406800,
"mon_1_close": 439200,
"tue_1_open": 493200,
"tue_1_close": 525600,
"wed_1_open": 579600,
"wed_1_close": 612000,
"thu_1_open": 61200,
"thu_1_close": 93600,
"fri_1_open": 147600,
"fri_1_close": 180000,
"sat_1_open": 234000,
"sat_1_close": 259200,
"sun_1_open": 324000,
"sun_1_close": 345600
}
}