[Solved] Having date() warnings

Discussion in 'Install/Configuration' started by kiladila, Mar 23, 2011.

  1. kiladila

    kiladila Member

    Hello, i'm new here and have some troubles wit litespeed. I have manged to install lsws on my Debian box but i ahve to much issues and can't handle alone.

    This is firs thread related to phpmyadmin and warnings inside. I can see in phpmyadmin

    PHP Warning: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/rapidleech.us/templates/plugmod/main.php on line 123
    Have to fix it?
    Last edited: Mar 23, 2011
  2. NiteWave

    NiteWave Administrator

    as the warning suggested, add one line
    to php.ini, restart lsws, the warning should disappear
  3. kiladila

    kiladila Member

    Thank you very much :)
  4. masood_y

    masood_y Well-Known Member

    I have like this problem in centos 5 32bit (directadmin) and changes in php.ini for date.timezone cannot resolve anything.
  5. NiteWave

    NiteWave Administrator

    need ensure you have changed the right php.ini first

    under document root of problem site, put a phpinfo.php page, access it, to determine which php.ini is loaded.

Share This Page