[buddypress-trac] [BuddyPress] #4310: Members Profile Shows "active sometime ago"

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Jul 11 13:28:55 UTC 2012


#4310: Members Profile Shows "active sometime ago"
-------------------------------------------+------------------------------
 Reporter:  frank13                        |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Core                           |     Version:  1.5.6
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |
-------------------------------------------+------------------------------

Comment (by frank13):

 oops, sorry @boonebgorges. Completely accidental on my part.

 Ok, so I tried 2 attempts to manually alter the datetime for member
 activity processing.

 (Attempt 1) this was added to my functions.php script document in my theme
 directory in order to set the internal time clock to a time slightly
 '''earlier than''''''' the actual clock:
 `function bbg_do_something_to_current_time( $time ) {
         // do stuff to $time (or provide a whole new value), and then
 return it

         $time = '2012-07-11 09:15:00';

         return $time;
 }
 add_filter( 'bp_core_current_time', 'bbg_do_something_to_current_time' );`

 (Attempt 2) this was added to my functions.php script document in my theme
 directory in order to set the internal time clock to a time slightly
 '''later than''''''' the actual clock:
 `function bbg_do_something_to_current_time( $time ) {
         // do stuff to $time (or provide a whole new value), and then
 return it

         $time = '2012-07-11 09:30:00';

         return $time;
 }
 add_filter( 'bp_core_current_time', 'bbg_do_something_to_current_time' );`

 Both attempts failed to show my users active since a real time rather than
 "active sometime ago"

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4310#comment:18>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list