Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [xml/atom] Problem z datą
Haczyk67
post
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
 
Start new topic
Odpowiedzi
ziqzaq
post
Post #2





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. (IMG:http://forum.php.pl/style_emoticons/default/dry.gif)

Ten post edytował ziqzaq 26.06.2009, 10:55:17
Go to the top of the page
+Quote Post

Posty w temacie


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: 12.10.2025 - 20:10