<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26825</bug_id>
          
          <creation_ts>2014-09-16 22:02:55 +0000</creation_ts>
          <short_desc>parse-ietf-date-6</short_desc>
          <delta_ts>2014-12-04 03:05:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Liam R E Quin">liam</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111644</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-09-16 22:02:55 +0000</bug_when>
    <thetext>This test reads:

&lt;test-case name=&quot;parse-ietf-date-6&quot;&gt;
      &lt;description&gt;long fractional seconds&lt;/description&gt;
      &lt;created by=&quot;Liam R E Quin&quot; on=&quot;2014-08-22&quot;/&gt;
      &lt;!--* XSD implementations must support milliseconds in dateTime objects.
          * We don&apos;t specify whether parse-ietf-date() must do the same, but
	  * since it returns a dateTime object that seems a resonable
	  * interpretation.  Greater precisions is permitted. Hwere all we care
	  * about is that it&apos;s not an error and that the rounding is the same
	  * in both cases.
	  *--&gt;
      &lt;environment&gt;
         &lt;param name=&quot;d&quot; as=&quot;xs:dateTime&quot; select=&quot;xs:dateTime(&apos;2014-08-20T19:36:01.2999999999999999999999999999999Z&apos;)&quot;/&gt;
      &lt;/environment&gt;
      &lt;test&gt;if (parse-ietf-date(&quot;Wed, 20 Aug 2014 19:36:01.2999999999999999999999999999999 GMT&quot;) = $d)
	  then &quot;pass&quot;
	  else &quot;fail&quot;&lt;/test&gt;
      &lt;result&gt;
         &lt;assert-string-value&gt;pass&lt;/assert-string-value&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;

Implementations are only required to support three digits of fractional seconds, and the effect when you supply more than this isn&apos;t well defined in the spec. At the very least, we shouldn&apos;t do it without a dependency.

Furthermore, things that are processor-dependent should never be defined except in the query-under-test, because it&apos;s assumed that all the metadata can be processed in order to determine the test dependencies. So as a first step in fixing this I&apos;m going to move the questionable cast operation into the query.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115901</commentid>
    <comment_count>1</comment_count>
    <who name="Liam R E Quin">liam</who>
    <bug_when>2014-12-04 03:05:48 +0000</bug_when>
    <thetext>I&apos;ve reduced the precision to 3 digits; we don&apos;t need (in this test suite) to test implementation-dependent precision.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>