Skip to:
Content

BuddyPress.org

Changes between Version 1 and Version 2 of Ticket #4310, comment 20


Ignore:
Timestamp:
07/12/2012 11:38:33 AM (12 years ago)
Author:
boonebgorges
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4310, comment 20

    v1 v2  
    11Below 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.
    2 `
     2{{{
    33        //$newer_date = ( !$newer_date ) ? strtotime( bp_core_current_time() ) : $newer_date;
    44        if ( !$newer_date ) {
     
    77                $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] );
    88        }
    9 `
     9}}}
    1010
    1111backticks are not working here so the first line $newer_date is actually commented out in my script file.