PHP strftime outputs wrong format despite correct timezone

前端 未结 3 806
野性不改
野性不改 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:14

    after setting the timezone to Europe/Paris, Use echo date('d-M-Y') and it will display your desired time. it worked for me

提交回复
热议问题