Skip to content

Library test suites across time zones

  • The core functions, which every industry uses.

GMT runs its whole test suite in 10 time zones on Node 22, 24, 26. This page runs the test suite of each library on the comparison in the same zones, with the same Node versions, and counts the tests that fail. The suites were run on 2026-11-18. GMT’s own suite is run the same way, as the control.

Each failing test is sorted into one of two kinds:

  • The test assumes one zone. The test holds an expectation that is true in one host zone only, so it fails in another zone whatever the library does.
  • The library gives a wrong answer. The test’s expectation is right in every zone, and the library gives a different answer in this one. The row names the input, the zone, what Temporal gives and what the library gives.

Two sorts of failure are counted in neither kind: a test that also fails in the suite’s reference zone, and a test that failed in only one of two runs. Each suite’s section lists them with the Node versions and the cause.

A person runs pnpm matrix in scripts/zone-matrix/. The runner reads the zones and Node versions from the gmt-matrix job in .github/workflows/ci.yml, so they cannot differ from the ones GMT’s CI runs. For each suite it fetches the pinned commit, checks the commit, installs the dependencies from the suite’s own lockfile and starts the test runner directly, once for each Node version and zone, with the TZ environment variable set.

Some suites pin a zone in their own scripts or CI. The runner starts the test runner itself, so a pin in a script or a CI file does not apply. A suite that sets the zone in its test code can override the one it was given. A probe loaded into every test process records the zone the process starts with and the zone it ends with. If a process changes its zone after it starts, or no process starts in the zone asked for, the run is shown as overridden and counts no failure. A child process that a test starts with its own TZ is not an override. A suite with no run that kept its zone is shown as not measured, never as 0. Each suite’s section lists the zone pins the runner found in the suite’s files.

Each suite is also run once per Node version in its reference zone: the zone its own CI runs in, or UTC where its CI sets none. A test that fails there is a known failure of the suite on that machine. A run with a failing test is run a second time, and a test that fails in only one of the two runs is listed as failing once in two runs. Every other failure is sorted by hand into one of the two kinds, with a one-line reason. A failure that is not sorted, or a known or once-in-two-runs failure with no stated cause, stops the run. The version, commit, Node version, time-zone data version, date and command of every figure are in the record.

A test is counted once per suite and kind, however many zones and Node versions it fails in. The figures count tests, which differ in size between suites, so they do not rank the libraries.

Failures by suite, in GMT's CI time zones
SuiteVersionThe test assumes one zoneThe library gives a wrong answerReference zone
@internationalized/date3.12.400UTC
Luxon3.7.270America/New_York
date-fns4.4.000UTC
Moment.js2.31.008UTC
Day.js1.11.2350UTC
Spacetime7.17.100UTC
@js-temporal/polyfill0.5.100UTC
temporal-polyfill1.0.800America/New_York
GMT1.21.000UTC

@internationalized/date 3.12.4

Commit f56660b234bd588751c9f35b85d6fe6e17e45ccf of adobe/react-spectrum, run with TZ=<zone> jest packages/@internationalized/date/tests/ --json --maxWorkers=2. The project's own command is yarn jest packages/@internationalized/date. Reference zone: UTC (none: the project's CI sets no zone, so UTC).

@internationalized/date by time zone
Time zoneTests runThe test assumes one zoneThe library gives a wrong answer
Pacific/Niue38600
America/New_York38600
UTC38600
Europe/London38600
Asia/Kolkata38600
Asia/Kathmandu38600
Asia/Shanghai38600
Australia/Lord_Howe38600
Pacific/Chatham38600
Pacific/Apia38600

Luxon 3.7.2

Commit 4262a38ded7762e22608a9feb9f117b40d338ced of moment/luxon, run with TZ=<zone> jest --json --maxWorkers=2. The project's own command is npm test. Reference zone: America/New_York (.github/workflows/test.yml: TZ: America/New_York).

Luxon by time zone
Time zoneTests runThe test assumes one zoneThe library gives a wrong answer
Pacific/Niue115270
America/New_York115200
UTC115270
Europe/London115260
Asia/Kolkata115270
Asia/Kathmandu115270
Asia/Shanghai115270
Australia/Lord_Howe115270
Pacific/Chatham115270
Pacific/Apia115270
Luxon: failing tests
TestKindZonesWhy
test/datetime/diff.test.js › DateTime#diff handles fractional days as fractions of those specific daysThe test assumes one zoneAsia/Kathmandu, Asia/Kolkata, Asia/Shanghai, Australia/Lord_Howe, Europe/London, Pacific/Apia, Pacific/Chatham, Pacific/Niue, UTCExpects 1 + 24/25 days because 4 November 2018 lasts 25 hours in America/New_York; in other zones that day lasts 24 hours and the value matches Temporal.
test/datetime/diff.test.js › DateTime#diff is precise for lower order unitsThe test assumes one zoneAsia/Kathmandu, Asia/Kolkata, Asia/Shanghai, Australia/Lord_Howe, Pacific/Apia, Pacific/Chatham, Pacific/Niue, UTCExpects 2999 hours, which holds where one spring-forward hour falls in the span (America/New_York); in other zones the hour count matches Temporal.
test/datetime/tokenParse.test.js › DateTime.format() uses local zone when setZone is false and offset in inputThe test assumes one zoneAsia/Kathmandu, Asia/Kolkata, Asia/Shanghai, Australia/Lord_Howe, Europe/London, Pacific/Apia, Pacific/Chatham, Pacific/Niue, UTCExpects the America/New_York day, hour and offset (-300) of the parsed instant.
test/datetime/tokenParse.test.js › DateTime.format() uses local zone when setZone is false and zone id in inputThe test assumes one zoneAsia/Kathmandu, Asia/Kolkata, Asia/Shanghai, Australia/Lord_Howe, Europe/London, Pacific/Apia, Pacific/Chatham, Pacific/Niue, UTCExpects the America/New_York day, hour, offset and zone name of the parsed instant.
test/datetime/zone.test.js › The local zone does local stuffThe test assumes one zoneAsia/Kathmandu, Asia/Kolkata, Asia/Shanghai, Australia/Lord_Howe, Europe/London, Pacific/Apia, Pacific/Chatham, Pacific/Niue, UTCExpects the host zone's names to be Eastern Daylight Time and EDT.
test/info/zones.test.js › Info.normalizeZone converts local to system ZoneThe test assumes one zoneAsia/Kathmandu, Asia/Kolkata, Asia/Shanghai, Australia/Lord_Howe, Europe/London, Pacific/Apia, Pacific/Chatham, Pacific/Niue, UTCExpects the host zone to be America/New_York.
test/zones/local.test.js › SystemZone.instance provides valid ...The test assumes one zoneAsia/Kathmandu, Asia/Kolkata, Asia/Shanghai, Australia/Lord_Howe, Europe/London, Pacific/Apia, Pacific/Chatham, Pacific/Niue, UTCExpects the host zone name America/New_York.

Counted in neither kind, with the cause of each failure:

Luxon: failures counted in neither kind
TestFailsNodeCause
test/datetime/create.test.js › DateTime.fromObject() w/locale weeks handles fully specified datesin the reference zone, America/New_York24, 26From V8 13.6 (Node 24), Intl.Locale.prototype.getWeekInfo() returns no minimalDays, so Luxon uses its fallback of 4 (src/impl/locale.js:80-84); the en-US test expects 1.
test/datetime/create.test.js › DateTime.fromObject() w/localWeekYears handles skew with Gregorian yearsin the reference zone, America/New_York24, 26From V8 13.6 (Node 24), Intl.Locale.prototype.getWeekInfo() returns no minimalDays, so Luxon uses its fallback of 4 (src/impl/locale.js:80-84); the en-US test expects 1.
test/datetime/localeWeek.test.js › weeksInLocalWeekYear 2022 should have 53 weeks in en-USin the reference zone, America/New_York24, 26From V8 13.6 (Node 24), Intl.Locale.prototype.getWeekInfo() returns no minimalDays, so Luxon uses its fallback of 4 (src/impl/locale.js:80-84); the en-US test expects 1.
test/datetime/set.test.js › DateTime#set({ localWeekNumber }) sets the date to the same weekday of the target weekNumber (en-US)in the reference zone, America/New_York24, 26From V8 13.6 (Node 24), Intl.Locale.prototype.getWeekInfo() returns no minimalDays, so Luxon uses its fallback of 4 (src/impl/locale.js:80-84); the en-US test expects 1.
test/datetime/set.test.js › DateTime#set({ localWeekYear }) sets the date to the same weekNumber/weekday of the target weekYear (en-US)in the reference zone, America/New_York24, 26From V8 13.6 (Node 24), Intl.Locale.prototype.getWeekInfo() returns no minimalDays, so Luxon uses its fallback of 4 (src/impl/locale.js:80-84); the en-US test expects 1.
test/info/localeWeek.test.js › Info.getMinimumDaysInFirstWeek reports the correct valuein the reference zone, America/New_York24, 26From V8 13.6 (Node 24), Intl.Locale.prototype.getWeekInfo() returns no minimalDays, so Luxon uses its fallback of 4 (src/impl/locale.js:80-84); the en-US test expects 1.
test/info/localeWeek.test.js › Info.getStartOfWeek honors the default localein the reference zone, America/New_York24, 26From V8 13.6 (Node 24), Intl.Locale.prototype.getWeekInfo() returns no minimalDays, so Luxon uses its fallback of 4 (src/impl/locale.js:80-84); the en-US test expects 1.
test/datetime/tokenParse.test.js › DateTime.fromFormatExplain() parses localized string with numberingSystem correctlyin the reference zone, America/New_York22, 24, 26ICU 78.3 (CLDR 48) gives the Thai day period as PM; the test parses หลังเที่ยง, so rawMatches is null.
test/datetime/format.test.js › DateTime#toLocaleString can override the dateTime's output calendarin the reference zone, America/New_York22, 24, 26ICU 78.3 (CLDR 48) names the Ethiopic era AM; the test expects ERA1.
test/interval/format.test.js › Interval#toLocaleString can override the start DateTime's output calendarin the reference zone, America/New_York22, 24, 26ICU 78.3 (CLDR 48) names the Ethiopic era AM; the test expects ERA1.
test/datetime/tokenParse.test.js › DateTime.fromFormat() makes dots optional and handles non breakable spacesin the reference zone, America/New_York22, 24On Node 22 and 24 (V8 12.4, 13.6) the es-ES day period is p. U+202F m.; the parser matches U+0020 or U+00A0 between its parts (src/impl/tokenParser.js:15-16).
test/datetime/format.test.js › DateTime#toLocaleString uses locale-appropriate time formatsin the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/datetime/format.test.js › DateTime#toLocaleString() does the best it can with unsupported fixed-offset zone when showing the zonein the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/datetime/format.test.js › DateTime#toLocaleString() does the best it can with unsupported fixed-offset zone with timeStyle fullin the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/datetime/format.test.js › DateTime#toLocaleString() shows things in the right custom zonein the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/datetime/format.test.js › DateTime#toLocaleString() shows things in the right custom zone when showing the zonein the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/datetime/format.test.js › DateTime#toLocaleString() shows things in the right custom zone with timeStyle fullin the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/datetime/format.test.js › DateTime#toLocaleString() shows things with UTC if fixed-offset zone with 0 offset is usedin the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/datetime/toFormat.test.js › DateTime#toFormat('t') returns a short time representationin the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/datetime/toFormat.test.js › DateTime#toFormat('tt') returns a medium time representationin the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/interval/format.test.js › Interval#toLocaleString does the best it can with unsupported fixed-offset zone when showing the zonein the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/interval/format.test.js › Interval#toLocaleString shows things in the right fixed-offset zonein the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/interval/format.test.js › Interval#toLocaleString shows things in the right fixed-offset zone when showing the zonein the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/interval/format.test.js › Interval#toLocaleString shows things in the right IANA zonein the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/interval/format.test.js › Interval#toLocaleString shows things with UTC if fixed-offset with 0 offset is usedin the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.
test/interval/format.test.js › Interval#toLocaleString uses locale-appropriate time formatsin the reference zone, America/New_York26V8 14.6 (Node 26) formats with U+0020 before AM or PM where the test expects U+202F.

date-fns 4.4.0

Commit cd53d2538cfa318404eff7ade6449b49bf34562e of date-fns/date-fns, run with TZ=<zone> vitest run --project main --reporter=json --maxWorkers=2. The project's own command is pnpm test. Reference zone: UTC (none: the project's CI sets no zone, so UTC).

date-fns by time zone
Time zoneTests runThe test assumes one zoneThe library gives a wrong answer
Pacific/Niue314800
America/New_York316600
UTC314800
Europe/London316600
Asia/Kolkata314800
Asia/Kathmandu314800
Asia/Shanghai314800
Australia/Lord_Howe316600
Pacific/Chatham316600
Pacific/Apia316600

Moment.js 2.31.0

Commit 15b45d48a176312e8f34143c5a800090abf4787f of moment/moment, run with TZ=<zone> node scripts/test.js. The project's own command is npm test. Reference zone: UTC (none: the project's CI sets no zone, so UTC).

Moment.js by time zone
Time zoneTests runThe test assumes one zoneThe library gives a wrong answer
Pacific/Niue394300
America/New_York394300
UTC394300
Europe/London394300
Asia/Kolkata394300
Asia/Kathmandu394300
Asia/Shanghai394300
Australia/Lord_Howe394300
Pacific/Chatham394300
Pacific/Apia394308
Moment.js: failing tests
TestKindZonesWhy
locale/ar-ly.js › locale:ar-ly > weeks year starting sunday formattedThe library gives a wrong answerPacific/ApiaWeek 1 of 2012 starts on Saturday 31 December 2011; in Pacific/Apia, which skipped 30 December 2011, the day of year comes out as 364 and the week as 52.
locale/ar.js › locale:ar > weeks year starting sunday formattedThe library gives a wrong answerPacific/ApiaWeek 1 of 2012 starts on Saturday 31 December 2011; in Pacific/Apia, which skipped 30 December 2011, the day of year comes out as 364 and the week as 52.
locale/fa.js › locale:fa > weeks year starting sunday formattedThe library gives a wrong answerPacific/ApiaWeek 1 of 2012 starts on Saturday 31 December 2011; in Pacific/Apia, which skipped 30 December 2011, the day of year comes out as 364 and the week as 52.
locale/ku.js › locale:ku > weeks year starting sunday formattedThe library gives a wrong answerPacific/ApiaWeek 1 of 2012 starts on Saturday 31 December 2011; in Pacific/Apia, which skipped 30 December 2011, the day of year comes out as 364 and the week as 52.
locale/ps.js › locale:ps > week year starts on SaturdayThe library gives a wrong answerPacific/ApiaWeek 1 of 2012 starts on Saturday 31 December 2011; in Pacific/Apia, which skipped 30 December 2011, the day of year comes out as 364 and the week as 52.
locale/tzm-latn.js › locale:tzm-latn > weeks year starting sunday formattedThe library gives a wrong answerPacific/ApiaWeek 1 of 2012 starts on Saturday 31 December 2011; in Pacific/Apia, which skipped 30 December 2011, the day of year comes out as 364 and the week as 52.
locale/tzm.js › locale:tzm > weeks year starting sunday formattedThe library gives a wrong answerPacific/ApiaWeek 1 of 2012 starts on Saturday 31 December 2011; in Pacific/Apia, which skipped 30 December 2011, the day of year comes out as 364 and the week as 52.
moment/week_year.js › week year > weeks numbers dow:6 doy:12The library gives a wrong answerPacific/ApiaWeek 1 of 2012 starts on Saturday 31 December 2011; in Pacific/Apia, which skipped 30 December 2011, the day of year comes out as 364 and the week as 52.
Moment.js: evidence for each wrong answer
TestInputZoneTemporalLibrary
locale/ar-ly.js › locale:ar-ly > weeks year starting sunday formattedmoment([2011, 11, 31]) with week { dow: 6, doy: 12 }Pacific/Apia2011-12-31T00:00:00+14:00[Pacific/Apia]: dayOfYear 365; the Saturday-first week 2011-12-31..2012-01-06 holds 1 January, so week 1dayOfYear 364, week 52
locale/ar.js › locale:ar > weeks year starting sunday formattedmoment([2011, 11, 31]) with week { dow: 6, doy: 12 }Pacific/Apia2011-12-31T00:00:00+14:00[Pacific/Apia]: dayOfYear 365; the Saturday-first week 2011-12-31..2012-01-06 holds 1 January, so week 1dayOfYear 364, week 52
locale/fa.js › locale:fa > weeks year starting sunday formattedmoment([2011, 11, 31]) with week { dow: 6, doy: 12 }Pacific/Apia2011-12-31T00:00:00+14:00[Pacific/Apia]: dayOfYear 365; the Saturday-first week 2011-12-31..2012-01-06 holds 1 January, so week 1dayOfYear 364, week 52
locale/ku.js › locale:ku > weeks year starting sunday formattedmoment([2011, 11, 31]) with week { dow: 6, doy: 12 }Pacific/Apia2011-12-31T00:00:00+14:00[Pacific/Apia]: dayOfYear 365; the Saturday-first week 2011-12-31..2012-01-06 holds 1 January, so week 1dayOfYear 364, week 52
locale/ps.js › locale:ps > week year starts on Saturdaymoment([2011, 11, 31]) with week { dow: 6, doy: 12 }Pacific/Apia2011-12-31T00:00:00+14:00[Pacific/Apia]: dayOfYear 365; the Saturday-first week 2011-12-31..2012-01-06 holds 1 January, so week 1dayOfYear 364, week 52
locale/tzm-latn.js › locale:tzm-latn > weeks year starting sunday formattedmoment([2011, 11, 31]) with week { dow: 6, doy: 12 }Pacific/Apia2011-12-31T00:00:00+14:00[Pacific/Apia]: dayOfYear 365; the Saturday-first week 2011-12-31..2012-01-06 holds 1 January, so week 1dayOfYear 364, week 52
locale/tzm.js › locale:tzm > weeks year starting sunday formattedmoment([2011, 11, 31]) with week { dow: 6, doy: 12 }Pacific/Apia2011-12-31T00:00:00+14:00[Pacific/Apia]: dayOfYear 365; the Saturday-first week 2011-12-31..2012-01-06 holds 1 January, so week 1dayOfYear 364, week 52
moment/week_year.js › week year > weeks numbers dow:6 doy:12moment([2011, 11, 31]) with week { dow: 6, doy: 12 }Pacific/Apia2011-12-31T00:00:00+14:00[Pacific/Apia]: dayOfYear 365; the Saturday-first week 2011-12-31..2012-01-06 holds 1 January, so week 1dayOfYear 364, week 52

Day.js 1.11.23

Commit 4549b8d03307891143e8a50d39fcdab1f16f77cf of iamkun/dayjs, run with TZ=<zone> jest --json --coverage=false --maxWorkers=2. The project's own command is npm test. Reference zone: UTC (none: the project's CI sets no zone, so UTC).

Day.js by time zone
Time zoneTests runThe test assumes one zoneThe library gives a wrong answer
Pacific/Niue79420
America/New_York79420
UTC79400
Europe/London79400
Asia/Kolkata79400
Asia/Kathmandu79400
Asia/Shanghai79400
Australia/Lord_Howe79430
Pacific/Chatham79430
Pacific/Apia79420
Day.js: failing tests
TestKindZonesWhy
test/get-set.test.js › Set Month and Year in last day of monthThe test assumes one zoneAustralia/Lord_Howe, Pacific/ChathamThe test instant 2011-07-31T14:48Z is already 1 August at offsets of +09:12 or more; the result matches Temporal for that local date.
test/plugin/calendar.test.js › ReferenceTimeThe test assumes one zoneAustralia/Lord_Howe, Pacific/Apia, Pacific/ChathamThe test's now, 2015-01-15T14:21Z, is already Friday 16 January at offsets of +09:39 or more, so the calendar labels name other days; each matches Temporal's day count.
test/plugin/dayOfYear.test.js › DayOfYear setThe test assumes one zoneAmerica/New_York, Pacific/NiueThe test starts from 2015-01-01T00:00Z, which is 31 December 2014 at negative offsets; the result matches Temporal for that local date.
test/plugin/localizedFormat.test.js › Should not interpolate characters inside square bracketsThe test assumes one zoneAmerica/New_York, Pacific/Apia, Pacific/NiueThe test formats the Unix epoch, 1970-01-01T00:00Z, which is still 1969 at negative offsets; the year printed matches Temporal.
test/plugin/pluralGetSet.test.js › Set Month and Year in last day of monthThe test assumes one zoneAustralia/Lord_Howe, Pacific/ChathamThe test instant 2011-07-31T14:48Z is already 1 August at offsets of +09:12 or more; the result matches Temporal for that local date.

Counted in neither kind, with the cause of each failure:

Day.js: failures counted in neither kind
TestFailsNodeCause
test/plugin/timezone.test.js › DST edge cases vs moment parses the fall-back overlap the same way as momentin the reference zone, UTC22, 24, 26For the repeated wall time 2012-11-04 01:00 in America/New_York, Day.js gives offset -05:00 and the test expects moment-timezone 0.5.31's -04:00, in every host zone.

Spacetime 7.17.1

Commit 35fbb59fda93f3686f6faee0f1e40e297950a5a8 of spencermountain/spacetime, run with TZ=<zone> node --import tsx tests/_lib/run.ts tests. The project's own command is npm test. Reference zone: UTC (none: the project's CI sets no zone, so UTC).

Spacetime by time zone
Time zoneTests runThe test assumes one zoneThe library gives a wrong answer
Pacific/Niue891000
America/New_York891000
UTC891000
Europe/London891000
Asia/Kolkata891000
Asia/Kathmandu891000
Asia/Shanghai891000
Australia/Lord_Howe891000
Pacific/Chatham891000
Pacific/Apia891000

@js-temporal/polyfill 0.5.1

Commit f3c07e503632ddf7ff918066f2eb30a9dcfa06ff of js-temporal/temporal-polyfill, run with TZ=<zone> node --no-warnings --loader ./test/resolve.source.mjs ./test/all.mjs. The project's own command is npm test. Reference zone: UTC (none: the project's CI sets no zone, so UTC).

@js-temporal/polyfill by time zone
Time zoneTests runThe test assumes one zoneThe library gives a wrong answer
Pacific/Niue490400
America/New_York490400
UTC490400
Europe/London490400
Asia/Kolkata490400
Asia/Kathmandu490400
Asia/Shanghai490400
Australia/Lord_Howe490400
Pacific/Chatham490400
Pacific/Apia490400

temporal-polyfill 1.0.8

Commit cc7bffcc6c5d6b447210588630226ceef8e704e2 of fullcalendar/temporal-polyfill, run with TZ=<zone> vitest run --reporter=json (polyfill/). The project's own command is pnpm test. Reference zone: America/New_York (.github/workflows/ci.yml: TZ: "America/New_York").

temporal-polyfill by time zone
Time zoneTests runThe test assumes one zoneThe library gives a wrong answer
Pacific/Niue182400
America/New_York182400
UTC182400
Europe/London182400
Asia/Kolkata182400
Asia/Kathmandu182400
Asia/Shanghai182400
Australia/Lord_Howe182400
Pacific/Chatham182400
Pacific/Apia182400

Counted in neither kind, with the cause of each failure:

temporal-polyfill: failures counted in neither kind
TestFailsNodeCause
src/funcApi/parity/diffUnzoned.test.ts › PlainDate diff parity 'constructs a fractional week in the s…'in the reference zone, America/New_York26On Node 26 the function API uses the built-in Temporal (src/funcApi/plainDate.ts:316), whose total() is rounded once; the test compares it with the polyfill's class implementation, which rounds twice and differs in the last bit (25/7 weeks: 3.5714285714285716 against 3.571428571428571; 424/365 years: 1.1616438356164382 against 1.1616438356164385).
src/funcApi/parity/diffUnzoned.test.ts › PlainYearMonth diff parity $s ignores reference ISO daysin the reference zone, America/New_York26On Node 26 the function API uses the built-in Temporal (src/funcApi/plainDate.ts:316), whose total() is rounded once; the test compares it with the polyfill's class implementation, which rounds twice and differs in the last bit (25/7 weeks: 3.5714285714285716 against 3.571428571428571; 424/365 years: 1.1616438356164382 against 1.1616438356164385).
src/internal/timeZoneImpl.test.ts › queryTimeZone finds the previous transition from far in the future in Africa/Casablancain the reference zone, America/New_York22, 24, 26The test expects the last Africa/Casablanca transition before 2100-07-01 at 2087-05-11T02:00Z; with tzdata 2026e the last one is 2026-09-20T01:00Z.

GMT 1.21.0

Commit c7c78ba2ef433f74e971fb51eba9b413dbee69f2+dirty of northguild/gmt, run with TZ=<zone> vitest run --config packages/gmt/vitest.config.ts --reporter=json. The project's own command is pnpm -w exec vitest run --config packages/gmt/vitest.config.ts. Reference zone: UTC (none: the project's CI sets no zone, so UTC).

GMT by time zone
Time zoneTests runThe test assumes one zoneThe library gives a wrong answer
Pacific/Niue7784500
America/New_York7784500
UTC7784500
Europe/London7784500
Asia/Kolkata7784500
Asia/Kathmandu7784500
Asia/Shanghai7784500
Australia/Lord_Howe7784500
Pacific/Chatham7784500
Pacific/Apia7784500

Last updated:

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.