Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP][MYSQL]Data przy użyciu now()
lukers
post
Post #1





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 13.06.2009

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


Używam funkcji now() do zwrotu z mysqla na stronę php bieżącej daty problem polega na tym że data która wyświetla nie jest właściwą datą tzn. np. wyświetla 2009-06-19 23:10:31, a tak naprawdę jest 2009-06-19 21:22:30 proszę o pomoc w rozwiązaniu problemu.
Go to the top of the page
+Quote Post
Wicepsik
post
Post #2





Grupa: Zarejestrowani
Postów: 1 575
Pomógł: 299
Dołączył: 26.03.2009

Ostrzeżenie: (20%)
X----


Inna godzina na hostingu, a inna na twoim kompie. Może serwery hostingowe są w innym kraju?
Go to the top of the page
+Quote Post
lukers
post
Post #3





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 13.06.2009

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


Nie serwer mam na tym samym komputerze co strona (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
Wicepsik
post
Post #4





Grupa: Zarejestrowani
Postów: 1 575
Pomógł: 299
Dołączył: 26.03.2009

Ostrzeżenie: (20%)
X----


Spróbuj SYSDATE()

Ten post edytował Wicepsik 19.06.2009, 20:34:22
Go to the top of the page
+Quote Post
lukers
post
Post #5





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 13.06.2009

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


Nie pomogło

Sprawa rozwiązana temat można zamknąć (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) . Odpowiedź jest prosta zapomniałem ustawić daty w debianie na bieżącą poprzez polecenie date --set gg:mm:ss dla osób u których wystąpił by podobny problem. (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 23.08.2025 - 10:05