PHP strftime outputs wrong format despite correct timezone

前端 未结 3 819
野性不改
野性不改 2021-01-29 07:51

I configured my timezone to Europe/Paris in php.ini. When executing date_default_timezone_get() I do get the correct value.

Then, I expect strftime(\'

3条回答
  •  天涯浪人
    2021-01-29 08:00

    I tried:

    setlocale(LC_ALL, 'fr_utf8');
    
    
    echo strftime("%d %B %Y", time());
    

    and got:

    16 novembre 2018
    

提交回复
热议问题