PHP Error Reporting; OS X on Localhost

A .php document has been transferred from one mac to a second mac.

The browser connects to localhost.

The php.ini files are identical.

On the second machine we get the error:


Warning: date() [function.date]: 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 'Europe/London' for 'BST/1.0/DST' instead in

The page does not view.

Could anyone please help?
smudgemouseAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

themrrobertCommented:
You are running a different version of PHP on the other mac.

Add this line :

date_default_timezone_set('America/Los_Angeles');

(or date_default_timezone_set('Europe/London'); if you are over there)

to the top of your 'highest up' include file. like 'globals.inc'.

also, in your php.ini you could add
date.timezone = "Europe/London"

In any case, where it was once not required, now it is. Its unfortunate, but you have to do it :)


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.