Strtotime(): It is not safe to rely on the system's timezone settings.
Przejdź do nawigacji
Przejdź do wyszukiwania
Jeżeli dostaniemy błąd:
Severity: Warning --> strtotime(): 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/4.0/no DST' instead controllers/adminapi.php 558
Otwieramy plik php.ini i odnajdujemy linijkę:
[Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone ;date.timezone =
Zamieniamy na
[Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone =Europe/Warsaw
Oczywiscie przy zalozeniu, ze nasz system pracuje na "Europe/Warsaw" :)