<?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>5309</bug_id>
          
          <creation_ts>2007-12-09 21:07:59 +0000</creation_ts>
          <short_desc>[XSLT 2.0] format-dateTime() component specified &quot;z&quot;</short_desc>
          <delta_ts>2008-07-11 13:51:05 +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>XSLT 2.0</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Michael Kay">mike</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>18017</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-12-09 21:07:59 +0000</bug_when>
    <thetext>We publish inconsistent examples for the expected output from component specifier &quot;z&quot;. Both &quot;GMT+1&quot; and &quot;GMT+02:00&quot; are suggested as possible output. We need to give clearer guidance as to what is expected (or what degrees of freedom are available). Perhaps the choice between the two example formats should depend on the rest of the format specifier.

This bug is raised in (inexcusably delayed!) response to internal bug 709 raised against test case dateformat015. See

http://www.w3.org/Member/bugzilla/show_bug.cgi?id=709

(member-only link)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18825</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-02-07 16:54:43 +0000</bug_when>
    <thetext>It&apos;s interesting to note that

http://wwp.greenwichmeantime.com/time-zone/gmt+1/

uses both GMT+1 and GMT+01:00 on the same page. The +1 form appears to be the more popular, as far as I can tell. I&apos;d suggest that the choice should be based on the width specifier.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19418</commentid>
    <comment_count>2</comment_count>
    <who name="Anders Berglund">alb.w3c</who>
    <bug_when>2008-03-12 14:32:21 +0000</bug_when>
    <thetext>Proposal for clarifying the current text:

Examples of specifications:

[z] (defaults to [z1]):  GMT+1, GMT+10, GMT+5:30

[z01]: GMT+01, GMT+10, GMT+5:30

[z,6-6] (defaults to [z1,6-6] and equivalent to [z01,6-6]):
       GMT+01:00, GMT+10:00, GMT+05:30

Additions to the existing text (existing text in []):

[If the minumum and maximum width are unspecified, then the
output uses as many characters as are required to represent
the value of the component without truncation and without
padding: this is referred to below as the full representation
of the value.] For a time offset the full representation of the
value consists of the sign for the offset, the number of hours
of the offset, and if the offset is not an integral number of hours
a &quot;:&quot; followed by the two digits of the minutes of the offset.

...

[If the full representation of the value is shorter than the
specified minimum width, then the processor should pad the value
to the specified width. For decimal representations of numbers,
this should be done by prepending zero digits from the appropriate
set of digit characters, or appending zero digits in the case of
the fractional seconds component.]
For time offsets this should be done by appending a &quot;:&quot; followed by two
zero digits from the appropriate set of digit characters if the full
representation does not already include a minutes component and if
the specified minimum width permits adding three characters,
otherwise this should be done by prepending zero digits from the
appropriate set of digit characters to the hour component.
[In other cases, it should be done by appending spaces.]

The GMT examples in the table need correcting to use [z,6-6]
rather than [z]. We should also add an example resulting in GMT+2.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21127</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-07-10 16:24:02 +0000</bug_when>
    <thetext>According to the minutes, this proposal was accepted by the WG and will be turned into an erratum.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21151</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-07-11 13:51:05 +0000</bug_when>
    <thetext>The proposal in comment #2 has been implemented (with slight editorial variation) in Erratum E24.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>