Skip to:
Content

BuddyPress.org

Changeset 3147


Ignore:
Timestamp:
07/22/2010 11:46:37 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Adjust bp_format_time to properly format date/time string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-templatetags.php

    r3145 r3147  
    853853    $date = date( 'F j, Y ', $time_offest );
    854854
    855     // Current time (9:50pm)
    856     $time = date( ' g:ia', $time_offest );
    857 
    858855    // Should we show the time also?
    859     if ( !$just_date )
    860         $date .= __( 'at', 'buddypress' ) . date( ' g:iA', $time_offest );
     856    if ( !$just_date ) {
     857        // Current time (9:50pm)
     858        $time = date( ' g:ia', $time_offest );
     859
     860        // Return string formatted with date and time
     861        $date = sprintf( __( '%1$s at %2$s', 'buddypress' ), $date, $time );
     862    }
    861863
    862864    return apply_filters( 'bp_format_time', $date );
Note: See TracChangeset for help on using the changeset viewer.