#248 closed defect (bug) (fixed)
Allow dynamic date formating according to blog date format
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | major | |
| Severity: | Version: | ||
| Component: | Keywords: | translation, date, time, hardcoding | |
| Cc: |
Description
bp-core/bp-core-templatetags.php, line 309
function bp_format_time( $time, $just_date = false ) {
$date = date( "F j, Y ", $time );
if ( !$just_date ) {
$date .= __('at', 'buddypress') . date( ' g:iA', $time );
}
return apply_filters( 'bp_format_time', $date );
}
Please, replace it with
function bp_format_time( $time, $just_date = false ) {
$date = date( get_option('date_format'), $time );
if ( !$just_date ) {
$date .= ' '.__('at', 'buddypress') . date(' '. get_option('time_format'), $time );
}
return apply_filters( 'bp_format_time', $date );
}
With this you will allow using of blog's date format instead of hardcoding ;)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Milestone Core 1.0 deleted