]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Specify UTC time zone for the test suite (#9945)
authorJosh Kelley <joshkel@gmail.com>
Mon, 6 Dec 2021 12:38:39 +0000 (07:38 -0500)
committerGitHub <noreply@github.com>
Mon, 6 Dec 2021 12:38:39 +0000 (07:38 -0500)
commit957ca837d5b5d03f10cdf4b91f67e3d1f3570d9b
tree18ec57aecca7e576edb3c5149632327d01e2f57e
parent4ac11a72089586ea595c5b6a2a6bbd26c437dfe9
Specify UTC time zone for the test suite (#9945)

The controller.bar/not-grouped/on-time test was failing on my computer because the date ranges happen to cross the end of Daylight Saving Time in the U.S., so chart was generated with one more hour of time than the test fixture expected.

Using moment-timezone to specify a fixed time zone with no DST seemed like the most robust fix. (Alternatively, I could pick a date range that doesn't change DST; that ought to work.)
karma.conf.js
package-lock.json
package.json
test/index.js
test/specs/scale.time.tests.js