PHP thinks date.timezone isn’t set

PHPphp5timezone

For some reason, even though I've uncommented the line in php.ini and properly set the value to date.timezone = America/New_York, php refuses to acknowledge it. When I open up phpinfo.php it says

Warning: phpinfo(): It is not safe to rely on the system's timezone
settings. You are required to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected the timezone 'UTC' for
now, but please set date.timezone to select your timezone.

I've triple checked that it is referencing the correct php.ini file. On the timezones page, it mentions a timezonesdb that can be downloaded. Do I have to install that because PHP doesn't come with built in timezones? That doesn't seem right.

Edit: I am using Apache2 and PHP that comes bundled with Mac OS X Mavericks.

Best Answer

For some reason there was a weird summation symbol before [PHP] on the first line of the file. It works fine after removing it.

Related Topic