Ticket #3522: calculate_offset.patch
File calculate_offset.patch, 616 bytes (added by , 13 years ago) |
---|
-
bp-core/bp-core-functions.php
633 633 * a date and the current time. $newer_date will have a value if we want to 634 634 * work out time elapsed between two known dates. 635 635 */ 636 $newer_date = ( !$newer_date ) ? strtotime( bp_core_current_time() ) : $newer_date;636 $newer_date = ( !$newer_date ) ? strtotime( bp_core_current_time() + date('Z') ) : $newer_date; 637 637 638 638 // Difference in seconds 639 639 $since = $newer_date - $older_date;