WordPress.org

Forums

Bug in Atom dates? (3 posts)

  1. Anonymous
    Unregistered
    Posted 11 years ago #

    Hi,
    The Atom 0.3 feed generated by the latest WordPress appears to be correct, but the Feed Validator rejects it:
    http://www.feedvalidator.org/check?url=http%3A%2F%2Fwww.nothlit.com%2Fwp-atom.php
    See this sample feed from nothlit.com.
    The date in the feed appears as:
    2004-01-13T3:07:25Z
    While this is consistent with Atom 0.3 and the W3C (http://www.w3.org/TR/NOTE-datetime), you could replace the Zulu notation with the following notation:
    2004-01-13T3:07:25-00:00
    This is also compliant and is .NET-friendly. .NET 1.1 DateTime is unable to parse Zulu dates.
    Thanks

  2. Anonymous
    Unregistered
    Posted 11 years ago #

    Actually, I misunderstood the error -- the Feed Validator is correct. The time values in your Atom feed must have two digits for the hours, like so:
    20040-01-13T03:07:25Z
    And I need to retract the comment about .NET and Zulu notation. .NET seems to handle Zulu notation just fine.
    David

  3. Anonymous
    Unregistered
    Posted 11 years ago #

    Actually, I misunderstood the error -- the Feed Validator is correct. The time values in your Atom feed must have two digits for the hours, like so:
    20040-01-13T03:07:25Z
    And I need to retract the comment about .NET and Zulu notation. .NET seems to handle Zulu notation just fine.
    David

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.