This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28686 - Editorial: fn:parse-ietf-date example result has 1994 instead of 2003
Summary: Editorial: fn:parse-ietf-date example result has 1994 instead of 2003
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2015-05-22 20:55 UTC by Priscilla Walmsley
Modified: 2016-12-16 19:55 UTC (History)
0 users

See Also:


Description Priscilla Walmsley 2015-05-22 20:55:18 UTC
The third example of fn:parse-ietf-date says:

The expression fn:parse-ietf-date("Wed Jun 06 11:54:45 EST 2013") returns xs:dateTime("1994-06-06T11:54:45-0500").

but the year in the return value should be 2003 instead of 1994.
Comment 1 Priscilla Walmsley 2015-05-22 20:56:04 UTC
Also, the 3rd and 5th examples are missing the colon in the time zone in the result.
Comment 2 Michael Kay 2015-05-23 18:52:26 UTC
The incorrect year has been fixed in the current internal draft. The missing colon in the timezone has not.
Comment 3 Michael Kay 2015-05-29 08:08:09 UTC
Thanks, now fixed.