Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Site Wide activity not recorded for new blog posts


westpointer
Participant

@westpointer

I posted this as a ticket (it is a bug) here: https://trac.buddypress.org/ticket/543

The solution:

OK, this is a confirmed bug. The post_date reflects the time zone set for the blog which is mountain time. I’m in the eastern time zone so my post was seen by this line of code as 2 hours old as soon as I added the post. We need to off-set for the time zone.

REPLACE:

if ( $recorded_post->date_created >= strtotime( "-30 minutes" ) )

WITH

if ( $recorded_post->date_created >= (current_time('timestamp') - 30) )

that will fix the problem! (code in bp-blogs.php)

Skip to toolbar