Skip to:
Content

BuddyPress.org

Ticket #4365: 4365.strtotime.patch

File 4365.strtotime.patch, 632 bytes (added by imath, 10 years ago)
  • src/bp-xprofile/bp-xprofile-functions.php

    diff --git src/bp-xprofile/bp-xprofile-functions.php src/bp-xprofile/bp-xprofile-functions.php
    index a437392..ef851af 100644
    function xprofile_format_profile_field( $field_type, $field_value ) { 
    499499        $field_value = bp_unserialize_profile_field( $field_value );
    500500
    501501        if ( 'datebox' == $field_type ) {
    502                 $field_value = bp_format_time( $field_value, true );
     502                $field_value = bp_format_time( strtotime( $field_value ), true );
    503503        } else {
    504504                $content = $field_value;
    505505                $field_value = str_replace( ']]>', ']]>', $content );