[Bug 17285] New: [QT3TS] format-time-015

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17285

           Summary: [QT3TS] format-time-015
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: oneil@saxonica.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


I'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
"01:01".

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

"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."

suggests that the presentation modifier should be split as "01:0" and "1".

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 1 June 2012 15:57:34 UTC