How do I make this function display the date in EN

Asked

Viewed 47 times

0

How do I display the date in the Brazilian standard below for this function?
I tried to use the function _i18n, but I don’t know how to use it properly.

if ( ! function_exists( 'supermag_date_display' ) ) :
    function supermag_date_display( $format = 'l, F j, Y') {
        echo $time = current_time( $format, $gmt = 1 );
    }
endif;

Obs: The server used on the site is from the USA.

Thank you!

  • I don’t understand what you mean, but I think I know what it can be... define your date_default_timezone_set('America/Sao_Paulo')

  • 1

    You mean the date in this format $format = 'd/m/Y H:i:s' will show 11/06/2016 13:39:38 or the date_default_timezone_set @Viníciuslima? Try to clarify your question .

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.