XF 1.4 Incorrect Times for Timezone?

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?
 
Your server time is incorrect. Contact your web host and ask them to correct this.

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:
Top Bottom