WordPress.org

Ready to get started?Download WordPress

Forums

RSS2 feed <pubDate> is invalid (3 posts)

  1. mathieu
    Member
    Posted 8 years ago #

    Hi everyone,

    I've got a problem with my RSS2 feed. I've installed a language pack in the wordpress configuration so that my blog can be french. But, WordPress is even writing the date on my feed in french..

    I can still syndicate my data, but the date ordering is a free-4-all..

    Someone have a fix?

    Link to my feed :
    http://www.quebecblogue.com/feed

    Cheers,
    Matt

  2. mathieu
    Member
    Posted 8 years ago #

    Anyone ?

  3. mathieu
    Member
    Posted 8 years ago #

    Hi,

    I've finally found a way to fixed it by myself.

    There's an optional parameters to the function mysql2date. You need to set it to « 0 » so that it use english dating.

    <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_the_time('Y-m-d H:i:s'), 0); ?></pubDate>

    I hope, It ultimately help someone fix is problem.

    Cheers,
    Matt

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags