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')
– user45722
You mean the date in this format
$format = 'd/m/Y H:i:s'
will show11/06/2016 13:39:38
or thedate_default_timezone_set
@Viníciuslima? Try to clarify your question .– Florida