I have a problem with PHP not reflecting correctly the actual time, an as a result all server's scripts are always 5 hours in the future.
If I run this in thecommand line I got. (Centos5) ..
[root@server ~]# date
Sat May 4 11:20:17 CDT 2013
Which is correct (Im from mexico and the server has the correct Time Zone and time set), how ever doing this in PHP I get...
[root@server ~]# php -r 'echo gmdate("D, d M Y H:i:s e")."\n";'
Sat, 04 May 2013 16:18:45 UTC
As you can see the time is hours in the future, and my php.ini is supposed to have also the correct time zone defined.
[Date]
; Defines the default timezone used by the date functions
date.timezone = America/Mexico_City
So what can be the problem here?