Skip to:
Content

BuddyPress.org

Ticket #3522: calculate_offset.patch

File calculate_offset.patch, 616 bytes (added by sboisvert, 13 years ago)
  • bp-core/bp-core-functions.php

     
    633633         * a date and the current time. $newer_date will have a value if we want to
    634634         * work out time elapsed between two known dates.
    635635         */
    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;
    637637
    638638        // Difference in seconds
    639639        $since = $newer_date - $older_date;