Skip to:
Content

BuddyPress.org

Ticket #256: time_since.diff

File time_since.diff, 641 bytes (added by hudatoriq, 12 years ago)
  • bp-core.php

     
    849849
    850850        /* $newer_date will equal false if we want to know the time elapsed between a date and the current time */
    851851        /* $newer_date will have a value if we want to work out time elapsed between two known dates */
    852         $newer_date = ( $newer_date == false ) ? ( time() + ( 60*60*0 ) ) : $newer_date;
     852        $newer_date = ( $newer_date == false ) ? ( current_time('timestamp', 1) + ( 60*60*0 ) ) : $newer_date;
    853853
    854854        /* Difference in seconds */
    855855        $since = $newer_date - $older_date;