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 3350 - K-SeqExprCast-394
Summary: K-SeqExprCast-394
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-18 20:23 UTC by Michael Kay
Modified: 2006-06-28 17:04 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-06-18 20:23:05 UTC
The test is:

xs:gYear(xs:date("2002-11-23")) eq xs:gYear("2002Z")

The expected result is "true", but I believe this result is obtained only if the implicit timezone is Z.

The test should be rewritten so the results do not depend on implicit timezone.

Same reasoning applies to K-SeqExprCast-396
Comment 1 Frans Englich 2006-06-28 15:58:58 UTC
I rewrote the tests to:

xs:gYear(xs:date("2002-11-23Z")) eq xs:gYear("2002Z")

and

xs:gYearMonth(xs:date("2002-11-23Z")) eq xs:gYearMonth("2002-11Z")

I think this should remove dependencies on the implicit timezone. Feel free to change status to CLOSED if this is an acceptable resolution.


Frans