<?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>5684</bug_id>
          
          <creation_ts>2008-05-13 11:17:11 +0000</creation_ts>
          <short_desc>[XQTS] some FunctX timezone test depend on context timezone</short_desc>
          <delta_ts>2008-06-26 14:09:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Oliver Hallam">oliver</reporter>
          <assigned_to name="Frans Englich">frans.englich</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>20083</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2008-05-13 11:17:11 +0000</bug_when>
    <thetext>The following FunctX tests only work when the static timezone is +02:00 (although the results on the FunctX website are given for an implicit timezone of -05:00)

functx-fn-adjust-dateTime-to-timezone-6
functx-fn-adjust-dateTime-to-timezone-7
functx-fn-adjust-dateTime-to-timezone-all
functx-fn-adjust-date-to-timezone-5
functx-fn-adjust-date-to-timezone-6
functx-fn-adjust-date-to-timezone-all
functx-fn-adjust-time-to-timezone-5
functx-fn-adjust-time-to-timezone-6
functx-fn-adjust-time-to-timezone-7
functx-fn-adjust-time-to-timezone-8
functx-fn-adjust-time-to-timezone-all
functx-fn-implicit-timezone-1

I can think of 4 possible solutions:
1) Rewrite the adjust tests to compare the timezone with implicit-timezone(), and drop the implicit-timezone-1 test; although this will be quite messy in some cases and loose the succinctness of the tests.
2) Specify that the entire test suite should be run in a particular timezone (eg. +02:00).
3) Add another element/attribute/role to the test-cases to specify the timezone in which a test must be run.  This is my preferred solution.
4) Remove these tests entirely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20121</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2008-05-15 20:02:32 +0000</bug_when>
    <thetext>We ran into this issue long ago. My recollection is that agreed to use explicit timezones in most of our test cases, and to use Z as the expected value of the implicit timezone in just a small number of the test cases.

Perhaps I recall wrongly, or perhaps we changed this over time. I went looking for precedent, and found that in fn-implicit-timezone-2 that we expect &quot;-PT5H&quot; and the comparator is Inspect.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20125</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2008-05-16 07:37:50 +0000</bug_when>
    <thetext>Anyhow, it needs fixing.

I didn&apos;t have the measures for reviewing each test individually -- things like this will crop, but I believe it will be relatively few issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20860</commentid>
    <comment_count>3</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2008-06-25 16:35:20 +0000</bug_when>
    <thetext>I&apos;ve tried to fix this in CVS. These files are generated and it&apos;s not the easiest thing to get an overview of so it&apos;s very likely I&apos;ve missed something here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20927</commentid>
    <comment_count>4</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2008-06-26 13:50:48 +0000</bug_when>
    <thetext>These tests have all been removed/fixed correctly, with the exception of the expected result for functx-fn-adjust-time-to-timezone-all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20930</commentid>
    <comment_count>5</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2008-06-26 14:09:59 +0000</bug_when>
    <thetext>Yeah, updated version in CVS, I hope it&apos;s right.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>