Support » Plugin: Embed Facebook » [Plugin: Embed Facebook] Event times show as 8 hours behind

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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.

    julierachlin1

    (@julierachlin1)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Embed Facebook] Event times show as 8 hours behind’ is closed to new replies.