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

XF 1.4 Incorrect Times for Timezone?

Discussion in 'XenForo Questions and Support' started by TDUBS, Sep 23, 2014.

  1. TDUBS

    TDUBS Active Member

    Hello,

    It was brought to my attention that the times for each timezone is wrong. When I even select my timezone (UTC-7:00 Arizona), it comes up as 12:34PM when really it's 5:34PM here. We tested the UTC Dublin, Lisbon, London and it says 8:37PM when really it's 12:37AM there. My user registration option is set to UTC Dublin, Lisbon, London by default. Also, my default my server time is UTC Sep 22nd 19:38:15 2014 when I enter the command "date."

    Any idea how I can fix this?
     
  2. Martok

    Martok Well-Known Member

    Your server time is incorrect. Contact your web host and ask them to correct this.
     
  3. TDUBS

    TDUBS Active Member

    Worked. For future reference, this is what I did (CentOS 6.5);
    • Uncommented ;default.timezone= in my php.ini file to default.timezone="UTC" and rebooted my web server.
    • Then I ran this cp /usr/share/zoneinfo/GMT-0 /etc/localtime which sets the timezone to GMT-0 which is also UTC.
    • Then I installed NTP which will catch the server up to localtime; yum -y install ntp
    • Last but not least to get NTP properly going, run ntpdate pool.ntp.org
     
    Last edited: Sep 24, 2014

Share This Page