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 2353 - op-subtract-dateTimes-yielding-DTD-1 is timezone-dependent
Summary: op-subtract-dateTimes-yielding-DTD-1 is timezone-dependent
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.7.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-18 12:47 UTC by Michael Kay
Modified: 2005-10-29 09:32 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-10-18 12:47:50 UTC
The expected results of op-subtract-dateTimes-yielding-DTD-1 (taken from the F+O
spec) depend on the implicit timezone being -05:00

I suggest changing the test by adding the term

    - implicit-timezone()
Comment 1 Michael Kay 2005-10-18 13:24:35 UTC
Also affects

  op-subtract-dates-yielding-DTD-2
Comment 2 Michael Kay 2005-10-18 22:43:28 UTC
Also affects:

adjust-dateTime-to-timezone-1 
adjust-dateTime-to-timezone-2
adjust-dateTime-to-timezone-11
adjust-dateTime-to-timezone-12
adjust-dateTime-to-timezone-13
adjust-dateTime-to-timezone-14
adjust-dateTime-to-timezone-15
adjust-dateTime-to-timezone-16
adjust-dateTime-to-timezone-17

fn-adjust-date-to-timezone-1
fn-adjust-date-to-timezone-2
fn-adjust-date-to-timezone-11
fn-adjust-date-to-timezone-12
fn-adjust-date-to-timezone-13
fn-adjust-date-to-timezone-14
fn-adjust-date-to-timezone-15
fn-adjust-date-to-timezone-16
fn-adjust-date-to-timezone-17
fn-adjust-date-to-timezone-18
fn-adjust-date-to-timezone-19

fn-adjust-time-to-timezone-1
fn-adjust-time-to-timezone-2
fn-adjust-time-to-timezone-12
fn-adjust-time-to-timezone-13
fn-adjust-time-to-timezone-14
fn-adjust-time-to-timezone-15
fn-adjust-time-to-timezone-16
fn-adjust-time-to-timezone-17
fn-adjust-time-to-timezone-18
fn-adjust-time-to-timezone-19
Comment 3 Carmelo Montanez 2005-10-24 19:04:19 UTC
Actually I was thinking of just using "Z" for all the tests, that way the 
purpose is accomplished and test is independent of timezone.

Carmelo
Comment 4 Carmelo Montanez 2005-10-24 19:23:19 UTC
Actually just adding the "-5:00" to the term missing a timezone will do the 
trick.

Carmelo
Comment 5 Martin Probst 2005-10-25 12:08:36 UTC
ForExprType031 has the same problem.
Comment 6 Carmelo Montanez 2005-10-25 19:48:46 UTC
Agree.  Fixed tests as follows:
1)op-subtract-dateTimes-yielding-DTD-1,op-subtract-dates-yielding-DTD-2 used
explicit timezone of -05:00 and +05:00 respectively.
2)adjust-dateTime-to-timezone-1, adjust-dateTime-to-timezone-2 - Added a 
specific timezone on second argument using the xdt:dayTimeDuration function.
3)adjust-dateTime-to-timezone-11 through adjust-dateTime-to-timezone-17 - Used
empty sequence as second argument and used the string representation of 
resulting dateTime type.
4)fn-adjust-date-to-timezone-1, fn-adjust-date-to-timezone-2 - Added a 
specific timezone on second argument using the xdt:dayTimeDuration function.
5)fn-adjust-date-to-timezone-11 through fn-adjust-date-to-timezone-17 - Used
empty sequence as second argument and used the string representation of 
resulting date type.
6)fn-adjust-date-to-timezone-18 and fn-adjust-date-to-timezone-19 - Added the 
empty sequence as argument to second argument on the left term.
7)fn-adjust-time-to-timezone-1, fn-adjust-time-to-timezone-2 - Added a 
specific timezone on second argument using the xdt:dayTimeDuration function.
8)fn-adjust-time-to-timezone-12 through fn-adjust-time-to-timezone-17 - Used 
the String value of the resulting time type.  The problem seems to be getting 
the EBV of a time type.
9)fn-adjust-time-to-timezone-18 and fn-adjust-time-to-timezone-19 - These 
tests seems ok.

Submitted new version of tests and expected values.  You may close the bug if 
resolution is acceptable.