Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Błąd w strefie czasowej, wyskakuje błąd
Forum PHP.pl > Forum > Serwery WWW
yarek12
Bo wpisaniu kodu:
  1. <?php
  2. echo date('H');
  3. ?>

Wyskakuje błąd, z komunikatu wynika że mam coś źle ze strefą czasową i oni wybrali za mnie, a oto błąd:

  1. 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/Paris' for '2.0/DST' instead in C:\xampp\htdocs\4.0\form_jedzenie.php on line 53
thek
Komunikat wyraźnie mówi co masz zrobić. Ustaw strefę czasową w kodzie, bo poleganie na czasie systemowym jest mało wiarygodne. Masz według komunikatu na to 2 sposoby. Czy tak trudno przetłumaczyć sobie komunikat?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.