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.

SOLVED Server Time Issue

Discussion in 'General Discussion' started by canou83, Jul 20, 2017.

  1. canou83

    canou83 Well-Known Member

    Joined:
    Jul 20, 2016
    Messages:
    62
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    France
    cPanel Access Level:
    Website Owner
    Hello, we use Cpanel on a VPS at OVH. The server is based in Graveline in the north of France. We notice deviations of time at the timezone of the server. Indeed, this one is well set on the time of Paris :

    Current Time
    Thu Jul 20 10:58:22 CEST 2017
    Configure Timezone
    Europe/paris

    But when I control one of my sites on the server, I note a gap:
    Timezone PHP (server) +0 (unknown) UTC Daylight Saving Time: No
    => PHP time (server) 20/07/2017 08:58

    So we have a deviation of 2 hours (summer time). We tried to confirm the zone and to restart the server but this gap is still present. Would you like an idea to help us?

    Thank you.
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    259
    Likes Received:
    75
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    You may need to set up a custom php.ini file OR correct or introduce PHP script into your application to set the timezone for PHP

    Please see date_default_timezone_set for more details
     
    canou83 and cPanelMichael like this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,029
    Likes Received:
    1,277
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can browse to "WHM >> MultiPHP INI Editor" and use the "Editor Mode" tab for the version of PHP associated with the account to ensure the PHP "date.timezone" value is correct. It defaults to UTC.

    Thank you.
     
  4. canou83

    canou83 Well-Known Member

    Joined:
    Jul 20, 2016
    Messages:
    62
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    France
    cPanel Access Level:
    Website Owner
    Thanks, it's the good thing to do. It's OK.
     
    cPanelMichael likes this.
Loading...

Share This Page