The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Timezone

Discussion in 'General Discussion' started by petaglx, Sep 3, 2012.

  1. petaglx

    petaglx Member

    Joined:
    Aug 3, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi.

    All date/time related functions in PHP 5.3.16 on my server raise the following errir:

    Warrning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings...

    I have set the date.timezone from WHM and also set system timezone but it does not take into effect and displayes the same error. I have entered correct string Europe/Berlin.

    Please help!
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Have you set the timezone in /usr/local/lib/php.ini file or set it in the user-level php.ini on the account?
     
Loading...

Share This Page