1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wrong UTC time

Discussion in 'Server Configuration and Hosting' started by daimpa, Apr 2, 2015.

  1. daimpa

    daimpa Member

    Hello, I've a Centos server and I noticed that UTC time is wrong. For example now it's 15.36 UTC and my server shows 16.10 UTC. I've read that it depends on the configuration of the server, I'll check how to fix this, but how should I proceed with xenforo? Old dates will be updated automatically? Should I disable the board for 34mins before changing the time on the server?

  2. RoldanLT

    RoldanLT Well-Known Member

    • You can run this to correct your server timezone:
    ln -sf /usr/share/zoneinfo/Asia/Manila /etc/localtime
    ntpdate 0.us.pool.ntp.org
    • Then your php.ini should also have something like this:
    date.timezone = Asia/Manila
    • /admin.php?options/list/basicBoard
    • Guests' Time Zone
  3. daimpa

    daimpa Member

    Hi, thanks For your reply. Considering that my problem is not only the timezone but the time itself as there's no timezone utc+0.34, this will fix everything? Also, if data are stored in the database with the current time, when I fix it for the server it would be like the clock goes 34mins behind. I don't expect old dates to be updated automatically, so what happens?
  4. WSWD

    WSWD Well-Known Member

    You can then use the "date" command after that to set the exact time. As far as database entries, yes, they are likely to be a little wonky. You might see posts with times in the future, etc. But any new entries will be correct.

Share This Page