Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings.

15 Feb

Если какие-либо проблемы с датой в ПХП, например:

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/Helsinki'...

Прописываем в php скрипте такую строчку

date_default_timezone_set('UTC');
Rating of article:
[Total: 0 Average: 0]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.