Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8028053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:00:33+00:00 2026-06-05T00:00:33+00:00

I’m creating an event with the Facebook PHP SDK like this $fb_event[‘name’] = $_POST[‘post_title’];

  • 0

I’m creating an event with the Facebook PHP SDK like this

    $fb_event['name'] = $_POST['post_title'];
    $fb_event['description'] = $_POST['content'];
    $fb_event['start_time'] = date( "c", Ai1ec_Facebook_Event::get_facebook_start_time($event->start));
    $fb_event['location'] = "Dove ti pare basta che si aggiorni al mio timezone";
    $fb_event['street'] = "Via andrea del sarto 9";
    $fb_event['city'] = "Milan";
    $facebook = $this->facebook_instance_factory();
    try {
        $result = $facebook->api( "/me/events", "POST", $fb_event );
    } catch (FacebookApiException $e) {
        fb($e);
    }

the Ai1ec_Facebook_Event::get_facebook_start_time simply takes a timestamp and transforms it to UTC pretending that it’s PST. This means that if i edecide that the EVENT starts at 8PM UTC that function returns me 3AM of the following day.

Evrything works correctly and my event is created and the problem is that if i look at the event with my user which is in TIMEZONE UTC + 2 i still se 8PM and not 10PM

This is the created event https://www.facebook.com/events/245655182207213/

It seems like Facebook it’s ignoring timezones when creating this event, why?What do i have to tell facebook so that it uses standard timezones?

EDIT – After reading this article developers.facebook.com/roadmap/#timezone-less-events i realized that there is timezone field, but i can’t get that to work, because if i send

$fb_event['timezone'] = "Europe/Sofia";

Facebook simply ignores that and when i query the events i get back NULL fo rthe timezone.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:00:36+00:00Added an answer on June 5, 2026 at 12:00 am

    Facebook has implemented “timezoneless events.” What I have found this to mean is that events are always displayed to a user as though they are in that user’s local time (So when I visit your event page on Facebook, I also see your event as taking place at 20:00-22:00, even though I am located at UTC-4).

    The Events API documentation say that start_time and end_time should be passed a “string containing an ISO-8601 formatted date/time or a UNIX timestamp”.

    I recommend passing it the ISO-8601 formatted date, because if you pass it a timestamp, you need to correct that timestamp for daylight savings time (both yours and Facebook’s). So for your event, your code should just look like $fb_event['start_time'] = date( "c", $event->start);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.