up vote 2 down vote favorite
share [g+] share [fb]

I'm getting the infamous PHP timezone error:

PHP Warning: PHP Startup: 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/Moscow' for 'MSK/3.0/no DST' instead in Unknown on line 0

I did use date.timezone indeed, setting it to Europe/Berlin and Europe/Vilnius and then 'Europe/Vilnius' in php.ini but nothing seems to work.

Using PHP 5.3.0 with Apache 2 server on Ubuntu Linux 9.04

Besides, I'm getting this error at the time Apache with PHP starts, it is probably caused by one of plugins, maybe pecl... anyway, how could I set that timezone properly? Thanks in advance!

link|improve this question

feedback

1 Answer

up vote 0 down vote accepted

I got it working after complete apache & php reinstall from source. Must have been some LAMPP bug, probably.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.