Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    77
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    700
    Likes Received:
    236
    Trophy Points:
    93
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    canou83 and cPanelMichael like this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. canou83

    canou83 Well-Known Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice