I’m having timezone issues with EE 2.7.2—here’s a simple test PHP script I’m using to output the date:
<?php
print date(‘r’);
print “, “;
print date(‘D, d M Y H:i:s T’);
print “\n”;
?>
When run inside of a template with php parsing enabled in EE, this outputs:
Wed, 11 Dec 2013 17:31:13 +0000, Wed, 11 Dec 2013 17:31:13 UTC
When run as a stand-alone PHP script in the same server, I get this as a result:
Wed, 11 Dec 2013 09:29:21 -0800, Wed, 11 Dec 2013 09:29:21 PST
The latter is correct; it’s displaying in the timezone of the server:
[admin@crushlivepoker scripts]$ date
Wed Dec 11 09:31:58 PST 2013
I confirmed that PHP has the proper timezone configured in php.ini:
[admin@crushlivepoker scripts]$ php -i | grep timezone
Default timezone => US/Pacific
date.timezone => US/Pacific => US/Pacific
So I’d assume this is an EE issue of some sort; I checked Admin->Localization Settings and the timezone is indeed set correctly there.
What am I missing?