[Bug 21222] Tests that depend on a fixed timezone (UTC)

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

Christian Gruen <christian.gruen@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |REOPENED
         Resolution|FIXED                       |---

--- Comment #10 from Christian Gruen <christian.gruen@gmail.com> ---
"cbcl-hash-join-3" is another (and presumably the last) test case that depends
on UTC as fixed timezone:

  for $x in (xs:date("2010-10-10"),
             xs:date("1997-01-01+12:00"),
             xs:date("1997-01-02+12:00"))
  for $y in (xs:date("2010-10-10Z"),
             xs:date("2010-10-10+01:00"),
             xs:date("1997-01-01-12:00"))
  where $x = $y
  return $x

In essence, xs:date("2010-10-10") = xs:date("2010-10-10+01:00") returns false
for most timezones.

The test case could also be rewritten by removing the implicit timezone, or an
alternative result could be added ("1997-01-02+12:00").

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 26 June 2013 13:54:34 UTC