Facebook php timezone issue

Associate
Joined
20 May 2007
Posts
441
Heya everyone,

I've been playing around with the facebook api and I'm extracting the event data for an account.

The output for an event start time is something like:

Code:
1262028000

The actual time on facebook is:

28th December 2009 11:20

However if I use the following code on the above value I get:

Code:
date('d m Y H:i O', $eventInfo['start_time'])

28 12 2009 19:20

The facebook documentation just says this:

Note that the start_time and end_time returned are the times which were input by the event creator, converted to UTC after assuming that they were in Pacific time (Daylight Savings or Standard, depending on the date of the event), then converted into Unix epoch time.

So
(GMT Time UK) -> (Assumed Pacific even though its not) -> UTC -> Unix epoch time

I've been googling how to work this backwards but so far come unstuck.

I was just wondering if anyone could help me out with this one because at the moment it's killing me.

Cheers,
Matt
 
Cheers for the help guys, I'll try that out marc once facebook fixes their api problem.

It's been on and off for hours at time and it's gone down again at the moment
 
Back
Top Bottom