Support » Plugin: Recently Registered » Localized date and time format

  • The datetime in the list format is like 2019-02-12 11:49:29 even if the string “Y/m/d g:i:s a” is translated to “d.m.y H:i”. Why?

Viewing 1 replies (of 1 total)
  • Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Plugin Review Team Rep

    It should be honouring 'Y/m/d g:i:s a':

    if ( is_multisite() && ( 'list' == $mode ) ) {
        $formated_date = __( 'Y/m/d' );
    } else {
        $formated_date = __( 'Y/m/d g:i:s a' );
    }
    
    $registered   = strtotime(get_date_from_gmt($user->user_registered));
    $registerdate = '<span>'. date_i18n( $formated_date, $registered ) .'</span>' ;

    So unless something else is overriding that, I’m not sure.

Viewing 1 replies (of 1 total)
  • The topic ‘Localized date and time format’ is closed to new replies.