Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [xml/atom] Problem z datą
Haczyk67
post 26.06.2009, 09:24:21
Post #1





Grupa: Zarejestrowani
Postów: 56
Pomógł: 0
Dołączył: 15.02.2009

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


Napisałem kanał atom, w którym każdy wpis entry posiada datę w znacznikach <updated>, w formacie <updated>2009-07-01T23:34:12+02:00</updated> (generowany przez funkcję date(DATE_ATOM))

Jednak validator W3C wyrzuca error:

Implausible date: 2009-07-01T23:34:12+02:00 (10 occurrences) [help] <updated>2009-07-01T23:34:12+02:00</updated>

Nie znalazłem w googlach żadnych rozwiązań tego problemu. Co robię źle?

Ten post edytował Haczyk67 26.06.2009, 09:37:39
Go to the top of the page
+Quote Post
ziqzaq
post 26.06.2009, 10:09:11
Post #2





Grupa: Zarejestrowani
Postów: 428
Pomógł: 128
Dołączył: 17.06.2007

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


Zgodnie z linkiem help w komunikacie błędu:
"While this date-time value is formatted correctly, it either appears to be in the future, or far enough in the past to indicate that there might either be a software error, or an incorrectly set clock, involved."
Go to the top of the page
+Quote Post
Haczyk67
post 26.06.2009, 10:29:48
Post #3





Grupa: Zarejestrowani
Postów: 56
Pomógł: 0
Dołączył: 15.02.2009

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


Hm tak czytałem ten komunikat, ale co mam zrobić żeby "there might not either be a software error"(żeby nie było kiedyśtam żadnych błędów), czyli jak mam zapisać datę żeby nie wygenerowała żadnych ostrzeżeń przez validator?

Ten post edytował Haczyk67 26.06.2009, 10:30:36
Go to the top of the page
+Quote Post
ziqzaq
post 26.06.2009, 10:50:25
Post #4





Grupa: Zarejestrowani
Postów: 428
Pomógł: 128
Dołączył: 17.06.2007

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


Zdaje mi się, że nie zrozumiałeś komunikatu.
Format daty jest ok ("While this date-time value is formatted correctly").
Dzisiaj jest 26.06.2009, a ty masz datę w przyszłości 2009-07-01T23:34:12+02:00 ("it either appears to be in the future") i dlatego dostajesz błąd walidacji. Może być to spowodowane błędem softu na serwerze, lub źle ustawioną datą ("software error, or an incorrectly set clock").
Wszystko napisane w komunikacie, już jaśniej się nie da. dry.gif

Ten post edytował ziqzaq 26.06.2009, 10:55:17
Go to the top of the page
+Quote Post
Haczyk67
post 26.06.2009, 11:16:07
Post #5





Grupa: Zarejestrowani
Postów: 56
Pomógł: 0
Dołączył: 15.02.2009

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


O kurcze faktycznie winksmiley.jpg Źle zrozumiałem komunikat smile.gif Dzięki
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: 25.06.2025 - 00:39