Skip to:
Content

Changeset 7240


Ignore:
Timestamp:
06/25/13 01:31:29 (10 months ago)
Author:
boonebgorges
Message:

Use get_date_from_gmt() when displaying dates on Activity Management panel

Dates were previously showing up in UTC. The problem only arises in on this
Dashboard panel because elsewhere in BP, bp_core_time_since() is used for
activity timestamps, and the latter function does the necessary UTC conversion.

Fixes #4573

Props shanebp, trishasalas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-admin.php

    r7197 r7240  
    12981298 
    12991299        /* translators: 2: activity admin ui date/time */ 
    1300         printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>', 'buddypress' ), bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $item['id'] . '/', date_i18n( get_option( 'date_format' ), strtotime( $item['date_recorded'] ) ), date_i18n( get_option( 'time_format' ), strtotime( $item['date_recorded'] ) ) ); 
     1300        printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>', 'buddypress' ), bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $item['id'] . '/', get_date_from_gmt( $item['date_recorded'], get_option( 'date_format' ) ), get_date_from_gmt( $item['date_recorded'], get_option( 'time_format' ) ) ); 
    13011301 
    13021302        // End timestamp 
Note: See TracChangeset for help on using the changeset viewer.