Reply To: Bump Activity to top Plugin
It seems the author no longer offers support for this plugin, and I have been unable to add a function to change the format still.
I tried this:
function format_activity_date() {
$activityDate=bp_get_activity_date_recorded();
// Get GMT offset from root blog
$root_blog_offset = get_blog_option( BP_ROOT_BLOG, 'gmt_offset' );
// Calculate offset time
$time_offset = $time + ( $root_blog_offset * 3600 );
// Format the time using the offset and return it; date-i18n retrieves the date in localized format
return '' . date_i18n("l, M j, Y, g:ia T", strtotime($activityDate) + $time_offset) . '';
}
add_filter('etivite_bp_activity_bump_comment_posted', 'format_activity_date');
But it still is showing only one date rather than “user1 posted an update:” updated by user2:”
Any ideas @henrywright or anyone would be so appreciated.