[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 20:42:39 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):

 Below is the correct code to make the bp_core_time_since() work properly.
 I updated bp-core-functions.php and now my times get computed properly.
 `
         //$newer_date = ( !$newer_date ) ? strtotime(
 bp_core_current_time() ) : $newer_date;
         if ( !$newer_date ) {
                 $time_chunks = explode( ':', str_replace( ' ', ':',
 bp_core_current_time() ) );
                 $date_chunks = explode( '-', str_replace( ' ', '-',
 bp_core_current_time() ) );
                 $newer_date  = gmmktime( (int)$time_chunks[1],
 (int)$time_chunks[2], (int)$time_chunks[3], (int)$date_chunks[1],
 (int)$date_chunks[2], (int)$date_chunks[0] );
         }
 `

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


More information about the buddypress-trac mailing list