<?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>17285</bug_id>
          
          <creation_ts>2012-06-01 15:57:30 +0000</creation_ts>
          <short_desc>[QT3TS] format-time-015</short_desc>
          <delta_ts>2012-10-10 10:03:35 +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>Windows NT</op_sys>
          <bug_status>CLOSED</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="Tim Mills">tim</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>mike</cc>
    
    <cc>oneil</cc>
          
          <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>68514</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-06-01 15:57:30 +0000</bug_when>
    <thetext>I&apos;m failing to match the expected result of this (and some other) date/time format tests.

When formatting time zones with [z], the expect result includes results such as

0715GMT-14; 
0745GMT-13:30; 
0915;

whereas I produce

0715GMT-14:00; 
0745GMT-13:30; 
0915GMT;

respectively.

Since there is no presentation modifier for [z], the default must be used &quot;01:01&quot;.

I presume that this means that the hour component of the timezone is presented using &quot;01&quot;, and that the minute component is presented with &quot;01&quot;.  That said, from the spec

&quot;If this substring contains a single character, this is interpreted as the first presentation modifier. If it contains more than one character, the last character is examined: if it is valid as a second presentation modifier then it is treated as such, and the preceding part of the substring constitutes the first presentation modifier. Otherwise, the second presentation modifier is presumed absent and the whole substring is interpreted as the first presentation modifier.&quot;

suggests that the presentation modifier should be split as &quot;01:0&quot; and &quot;1&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68515</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-06-01 16:06:38 +0000</bug_when>
    <thetext>Yes, some of these tests have not been updated to reflect the changes that were made to the rules for timezone formatting. I will do this, but perhaps not instantly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68519</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-06-01 16:13:38 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71938</commentid>
    <comment_count>3</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-08-08 15:30:12 +0000</bug_when>
    <thetext>I have made the change required and committed it to cvs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72033</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-08-10 12:00:13 +0000</bug_when>
    <thetext>I get different results for the following tests.

format-date-025
format-dateTime-017
format-dateTime-018

The difference is in the formatting of timezones where the hours component could be represented with a single digit.  
e.g. 0245GMT-06:30; vs. 0245GMT-6:30;
   

format-date-026	  

The difference is in the in the formatting of timezones with a non-zero minute component.
e.g. -13:30 vs. -1330


format-time-016	
format-time-017	 
format-time-018

The difference is in the in the formatting of timezones.
e.g. 14:00 vs. 14-00</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75577</commentid>
    <comment_count>5</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-10-08 15:30:02 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I get different results for the following tests.
&gt; format-date-025
&gt; format-dateTime-017
&gt; format-dateTime-018
&gt; format-date-026    
I agree. We are also getting different results. Made the change and committed to cvs  

&gt; format-time-016    
&gt; format-time-017     
&gt; format-time-018
&gt; The difference is in the in the formatting of timezones.
&gt; e.g. 14:00 vs. 14-00

Don&apos;t agree here. We are getting the same result as the expected results. i.e. 14:00 format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75801</commentid>
    <comment_count>6</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-10-10 09:23:36 +0000</bug_when>
    <thetext> 
&gt; &gt; format-time-016    
&gt; &gt; format-time-017     
&gt; &gt; format-time-018
&gt; &gt; The difference is in the in the formatting of timezones.
&gt; &gt; e.g. 14:00 vs. 14-00
&gt; 
&gt; Don&apos;t agree here. We are getting the same result as the expected results.
&gt; i.e. 14:00 format.

I am wrong here. The format of the test outcomes are different to the expected results. I have made the change to the expected results and committed them to cvs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75806</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-10 10:03:35 +0000</bug_when>
    <thetext>Confirmed fixed.  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>