Page 1 of 1

Alert date/time off - 6 hours ahead

Posted: Thu May 31, 2012 8:29 am
by powersports
When I get alerts the date/time appears to still be in UTC time. Also, when I search notifications, selecting the last 24 hours, it show in UTC time.

If I run the command date the correct time is displayed:
Thu May 31 08:00:26 CDT 2012

The only line in /etc/sysconfig/clock is:
ZONE="AMERICA/Chicago"

I'm sure it is something simple that I am missing.

Re: Alert date/time off - 6 hours ahead

Posted: Thu May 31, 2012 8:40 am
by lmiltchev
You may have to edit the "/etc/php.ini" file. Add this line in the "[Date]" section:

Code: Select all

date.timezone = America/Chicago
then restart apache:

Code: Select all

service httpd restart
Hope this helps.

Re: Alert date/time off - 6 hours ahead

Posted: Thu May 31, 2012 9:51 am
by powersports
Thanks, that fixed it.

Re: Alert date/time off - 6 hours ahead

Posted: Thu May 31, 2012 2:09 pm
by lmiltchev
I'm glad I could help!