Facebook ignores timezone info for non-logged in users on uploaded events with ISO-8601 datetime -


events entered manually facebook show correct times regardless of logged in state, events uploaded via app datetimes iso-8601 (which includes time zone info ie 2013-09-27t13:00:00+01:00) result in facebook assuming event based display.

once user logged in, facebook shows event correctly using timezone info.

its noticeable manually entered events show utc+1 indicator, not appear on uploaded events.

why facebook ignoring timezone info when visitor not logged in, uploaded events?

is facebook requiring additional timezone data or bug.

dates pulled dbase , converted iso8601 with: date("c", strtotime($date))

then upload function is:

        `$page = $facebook->api("/{$page_id}");         $event_data = array(             'name' => stripslashes($_post['name']),             'description' => stripslashes(preg_replace('/£/', '£', $_post['description'])),             'start_time' => $_post['start_time'],             'end_time' => $_post['end_time'],             'ticket_uri' => $_post['ticket_uri'],             'location' => $_post['location'],             'location_id' => $_post['location_id'],             'no_feed_story' => ($_post['no_feed_story'] == 1),             'picture' => $_post['picture'],             'access_token' => $access_token,             'page_id' => $page_id);      }      $post = @$facebook->api('/' . $page_id . '/events?fields=name,picture,description,start_time,end_time,ticket_uri,location,no_feed_story', 'post', $event_data);` 

when not logged facebook give: [when] 27 september @ 05:00 until 29 september @ 07:00 , once logged in: [when] 27 september @ 13:00 until 29 september @ 15:00

and in uk viewing indicated timezone (utc+1), ip location london.

editing uploaded event timezone shown utc+01 though not display when logged out ??

some additional info, i`ve downloaded event feed page , note following errors:

an uploaded datetime of 2013-09-27t13:00:00+01:00 changed 2013-09-27t12:00:00+0000 , no time zone shown, expecting other timezone data on upload?

i've added code allow editing of existing events using:

$post = $facebook->api('/' . $_post['event_id'] . '/', 'post', $event_data);

for update , note editing manually edited event (that has timezone) changing event times using above datetime format, timezone retained, changing location has no effect either.

have enabled time zone support in facebook app settings?

facebook events timezone setting

you can read more here.


Comments