pubDate in wp-rss2.php
-
The way pubDate in wp-rss2.php is created is
echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'));
First of all, “+000” isn’t always correct, depending on where you live. but worse: for some reason the string created gets localized! So ‘May’ becomes ‘Mai’ and ‘Thu’ becomes ‘Don’ (in German). Now the feed doesn’t validate… ??
I think it would be correct to use ‘r’ instead of ‘D, d M Y H:i:s +0000’ (like it is used in wp-commentsrss2.php).
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘pubDate in wp-rss2.php’ is closed to new replies.