Changes between Version 1 and Version 2 of Ticket #4310, comment 20
- Timestamp:
- 07/12/2012 11:38:33 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4310, comment 20
v1 v2 1 1 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. 2 ` 2 {{{ 3 3 //$newer_date = ( !$newer_date ) ? strtotime( bp_core_current_time() ) : $newer_date; 4 4 if ( !$newer_date ) { … … 7 7 $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] ); 8 8 } 9 ` 9 }}} 10 10 11 11 backticks are not working here so the first line $newer_date is actually commented out in my script file.