Closed Bug 1577371 Opened 5 years ago Closed 5 years ago

bad timezone check in toolkit/components/telemetry/tests/unit/test_TelemetrySession.js (offsets up to UTC+14 are a thing)

Categories

(Toolkit :: Telemetry, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: benc, Assigned: benc)

Details

Attachments

(2 files)

Steps to replicate:

  1. move to New Zealand (or even better: Kiribati)
  2. run:
./mach xpcshell-test toolkit/components/telemetry/tests/unit/test_TelemetrySession.js

Expected results:

Test should pass without complaint.

Observed results:

Timezone check fails for the test Jan 1st 2020 test date, which is NZDT (NZ daylight time, UTC+13).

The existing check limits timezones to range -12 to +12 UTC. However offsets up to UTC+14 are a thing.
eg: https://en.wikipedia.org/wiki/UTC%2B14:00

Assignee: nobody → benc

Marking P1 to show it's being worked on.

Priority: -- → P1

Ben, maybe you want to submit that through phab and get it reviewed/landed.

Status: NEW → ASSIGNED
Summary: bad timezone check in toolkit/components/telemetry/tests/unit/test_TelemetrySession.js → bad timezone check in toolkit/components/telemetry/tests/unit/test_TelemetrySession.js (offsets up to UTC+14 are a thing)
Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/55197c40074d Fix timezone range check in TelemetrySession unit test. r=chutten
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: