Closed Bug 1684485 Opened 4 years ago Closed 4 years ago

Convert calendar tests to run in UTC by default

Categories

(Calendar :: General, task)

Tracking

(thunderbird_esr78 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
thunderbird_esr78 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(2 files, 1 obsolete file)

We've added a bunch of tests recently which set the time zone preference to UTC and then change it back again after the test. It would be better if all of the tests run in UTC by default, which they effectively already do on the CI.

This does raise a problem running on developers' computers which probably aren't in UTC, however if we are careful to use the UTC variants of the Date object's methods, the problem goes away. I'd like to introduce linting rules to enforce that but it's probably more effort than it's worth.

Changes the test manifests, and uses of the Date object to use UTC.

Depends on D100537

Blocks: 1670227
Target Milestone: --- → 86 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/f364a5426070
Convert calendar tests to run in UTC by default. r=lasana

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Question: Should this be uplifted to 78 so future tests don't break?

Flags: needinfo?(geoff)
Flags: needinfo?(geoff)

[Approval Request Comment]
Regression caused by (bug #): none
User impact if declined: none
Testing completed (on c-c, etc.): this bug landed in v86
Risk to taking this patch (and alternatives if risky): none, this is only for tests

Attachment #9201079 - Flags: approval-comm-esr78?

Gah, forgot to update the patch after fixing a typo.

[Approval Request Comment]
Regression caused by (bug #): none
User impact if declined: none
Testing completed (on c-c, etc.): this bug landed in v86
Risk to taking this patch (and alternatives if risky): none, this is only for tests

Attachment #9201079 - Attachment is obsolete: true
Attachment #9201079 - Flags: approval-comm-esr78?
Attachment #9201935 - Flags: approval-comm-esr78?

Comment on attachment 9201935 [details] [diff] [review]
1684485-calendar-tests-utc-esr78.diff

[Triage Comment]
Approved for esr78

Attachment #9201935 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: