Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] Jak ustawić date_default_timezone_set() tak jak time?()?
vir_e
post 15.03.2009, 16:48:26
Post #1





Grupa: Zarejestrowani
Postów: 55
Pomógł: 1
Dołączył: 25.03.2008

Ostrzeżenie: (0%)
-----


Witam, jak ustawić (jaki dać parametr) funkcje date_default_timezone_set() żeby dała taki sam rezultat co by dał time()questionmark.gif

Jak używam time wypluwa mi bład...
  1. <?php
  2. [b]Strict Standards[/b]:  phpinfo() [[url="http://localhost/function.phpinfo"]function.phpinfo[/url]]:  It is not safe to rely on the system's timezone settings. Please use  the date.timezone setting, the TZ environment variable 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  '1.0/no DST instead in [b]D:_wwwinfo.php[/b] on line [b]1[/b]
  3. ?>
Go to the top of the page
+Quote Post
Spawnm
post 15.03.2009, 16:49:59
Post #2





Grupa: Moderatorzy
Postów: 4 069
Pomógł: 497
Dołączył: 11.05.2007
Skąd: Warszawa




pokaż kod.
Go to the top of the page
+Quote Post
vir_e
post 15.03.2009, 16:57:43
Post #3





Grupa: Zarejestrowani
Postów: 55
Pomógł: 1
Dołączył: 25.03.2008

Ostrzeżenie: (0%)
-----


Ten błąd wywala mi nawet w phpinfo...

Europe/Warsaw - taki parametr będzie okey?
Go to the top of the page
+Quote Post
erix
post 15.03.2009, 17:53:31
Post #4





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




A nie możesz sprawdzić? Masz przecież wszystko w dokumentacji opisane: http://pl.php.net/manual/pl/timezones.php

Nie można zajrzeć?


--------------------

ZCE :: Pisząc PW załączaj LINK DO TEMATU i TYLKO w sprawach moderacji :: jakiś błąd - a TREŚĆ BŁĘDU? :: nie ponaglaj z odpowiedzią via PW!
Go to the top of the page
+Quote Post
decha-design
post 15.03.2009, 18:44:34
Post #5





Grupa: Zarejestrowani
Postów: 415
Pomógł: 46
Dołączył: 26.05.2007
Skąd: Sandomierz

Ostrzeżenie: (0%)
-----


Europe/Berlin i masz ok ... sam z tej korzystam


--------------------
Go to the top of the page
+Quote Post
-mardraze-
post 4.04.2012, 21:26:46
Post #6





Goście







Europe/Warsaw
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 16.06.2025 - 19:36