Changing Activity Stream Time & Date

Hello, I’m running WordPress 3.4.1. and Buddypress 1.5.6
I would like to change the Activity stream updates from “right now” , “2 hours, 22 minutes ago” , etc
to the exact time and date like “07/03/2012 at 12:58 PM”

Is there a plugin for this? If not
I’m comfortable with PHP but don’t know were to edit this
(activity/activity-loop.php) ?

I think I found it, Its in bp-activity > bp-activity-template.php > starts line 1187 > bp_activity_time_since’
Thanks @rogercoathup for bp_insert_activity_meta() function hint

*Update*
bp_core_time_since( $activities_template->activity->date_recorded ) date_recorded would be the post date
so it looks like I need to make a new function that uses the regular PHP time function to display the time style

So I need to ‘hook’ the filter onto one of those hooks that bp_insert_activity_meta provides .
I’m currently trying to find out were to insert this hook in the Frisco functions.php file
Here’s the custom hook

`
add_filter( ‘bp_activity_time_since’, strftime ($time,’l jS of F Y h:i:s A’,);
`
Obviously this function isn’t going to work but I’m trying to get the bigger idea,
I’m doing this on my Localhost using Mamp so I can just work by trial and error.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Changing Activity Stream Time & Date’ is closed to new replies.