When I use PHP's date() function on two different servers, I get two different results, but both servers should be the same.
I checked the php.ini file on server #1, where the time is correct, and it looks as follows:
date/time support enabled
"Olson" Timezone Database Version 0.system
Timezone Database internal
Default timezone America/Chicago
Directive Local Value Master Value
---------------------------------------------------
date.timezone America/Chicago America/Chicago
I checked on server #2 and it looks as follows:
date/time support enabled
"Olson" Timezone Database Version 0.system
Timezone Database internal
Default timezone UTC
Directive Local Value Master Value
---------------------------------------------------
date.timezone America/Chicago America/Chicago
The only difference I see is the "Default timezone" value.
The date/time for both servers current display as:
Server #1: 10/23/2012 09:40:39
Server #2: 10/23/2012 14:40:39
I confirmed that both servers use the php.ini located within /etc and I also searched both web directories for any place the timezone might be overwritten:
grep -r "date_default_timezone_set" *
But in that regard, they both contain the same files with the same settings.
Is "Default timezone" what's causing the 5h difference? If so, how do I correct it?
UPDATE
Loaded configuration files.
Server #2 contains two additional ini files:
/etc/php.d/snmp.ini
/etc/php.d/apc.ini
php -i results.
Server #1:
date/time support => enabled
"Olson" Timezone Database Ver