Function strftime() %A is returning weekday without -fair

Asked

Viewed 202 times

1

I’m running the function srtftime() with the parameter %A, however the dates are returning without the "-fair", only Monday, Tuesday, Wednesday, etc.

Someone’s had this problem before?

setlocale( LC_ALL, 'pt_BR.utf-8', 'pt_BR', 'Portuguese_Brazil');
date_default_timezone_set('America/Sao_Paulo');

echo strftime('%A, %d de %B de %Y', strtotime('today'));
  • I did a test with this code and returned quinta-feira, 06 de julho de 2017 has how to play it in ideone or other online php interpreter to get the doubt?

  • Idone always returns in English.

  • Here also worked well. Are you testing where? local or online?

  • I am running on my PHP 5.3.3 production web server

No answers

Browser other questions tagged

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