How to set date.timezone for CodeIgniter to work with php 5.3

后端 未结 5 1771
说谎
说谎 2020-12-13 09:57

When date.timezone in php.ini is commented out, it gives me:

A PHP Error was encountered

Severity: Warning

Message: main(): It

5条回答
  •  庸人自扰
    2020-12-13 10:34

    date.timezone is intended to go in your php.ini or .htaccess file.

    you could do an ini_set('date.timezone', 'America/Los_Angeles'); in the first line of your script and get the desired results.

提交回复
热议问题