WordPress.org

Ready to get started?Download WordPress

Forums

Embed Facebook
Event times show as 8 hours behind (4 posts)

  1. MKachtan
    Member
    Posted 3 years ago #

    I've set my event time on facebook for 5pm - 11:30pm however when embedded on my page using this plugin the times show as 9am - 3:30pm. Every event I add seems to show up as 8 hours behind the time I've set, is there a timezone setting I'm missing?

    http://wordpress.org/extend/plugins/embed-facebook/

  2. holyyakker
    Member
    Posted 3 years ago #

    Hey - I figured out a hack to the code that solves this problem.

    You need to replace:

    $start_time = sohail_iso8601($fb_event->start_time)-28000;
    		$end_time = sohail_iso8601($fb_event->end_time)-28000;

    with

    $start_time = sohail_iso8601($fb_event->start_time)-0;
    		$end_time = sohail_iso8601($fb_event->end_time)-0;

    In the embedfacebook.php file. That should solve your problem. The -28000 appears to be changing the time by making it 28000 seconds (8 hours) earlier.

  3. holyyakker
    Member
    Posted 3 years ago #

    As a follow up - technically I guess you wouldn't have to put -0, but I just left it in there as legacy code in case I ever did need to change it back I could remember something goes there.

  4. julierachlin1
    Member
    Posted 3 years ago #

    @holyyakker - omg THANK YOU for the hack! Saved me a lot of potential frustration trying to find the fix!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic