W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2013

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 14 Mar 2013 14:39:37 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-21222-523-3aulvRV366@http.www.w3.org/Bugs/Public/>

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
That's tricky because implicit-timezone() is required to be consistent with
current-dateTime(), therefore implementations might not be able to set it
independently. And they certainly might have difficulty setting it to different
values in the course of a single test run (because it might require changing
the system clock).

Also, since we've called for test results, I don't particular want to make
people change their test drivers at this juncture.

I would prefer a solution that eliminates the dependency, e.g. change
cbcl-gDay-equal-019 to

xs:gDay("---31+00:15") eq xs:gDay("---31")

(we can safely assume that no-one is running with implicit timezone = +00:15,
even though it is legal)

Similarly change cbcl-subtract-dates-003 to

xs:date("2008-12-31") - xs:date("2002-12-31+01:00") - implicit-timezone()

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 14 March 2013 14:39:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:42 UTC