Support » Plugin: Embed Facebook » [Plugin: Embed Facebook] Event times show as 8 hours behind
6 years, 3 months 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?
6 years, 2 months 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;
$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.
6 years ago
@holyyakker – omg THANK YOU for the hack! Saved me a lot of potential frustration trying to find the fix!