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!

Server Time Discrepancy?

Discussion in 'General Discussion' started by czerdrill, Mar 18, 2011.

  1. czerdrill

    czerdrill Well-Known Member

    Feb 18, 2011
    Likes Received:
    Trophy Points:
    I have a script on my server which allows me to make announcements that I can backdate, postdate or date current to display to my users. However, if I put the current date and time, it doesn't display. I have to backdate it in order for it to show up. So I assumed there's some issue with the server time. However, the host told me that the server is EST and that's where I am too.

    I even added date.timezone="America/New_York" to php.ini and that is reflected correctly in phpinfo.php. So is there some other reason this would be happening?
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    How are you putting the current date and time in the script? Are there any errors in the site's error_log when trying to set it that way?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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