Convert calendar tests to run in UTC by default
Categories
(Calendar :: General, task)
Tracking
(thunderbird_esr78 fixed)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | fixed |
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(2 files, 1 obsolete file)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
32.46 KB,
patch
|
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•4 years ago
|
||
Changes the test manifests, and uses of the Date
object to use UTC.
Depends on D100537
Assignee | ||
Updated•4 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/f364a5426070
Convert calendar tests to run in UTC by default. r=lasana
Comment 3•4 years ago
|
||
Question: Should this be uplifted to 78 so future tests don't break?
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
[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
Assignee | ||
Comment 5•4 years ago
|
||
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
Comment 6•4 years ago
|
||
Comment on attachment 9201935 [details] [diff] [review]
1684485-calendar-tests-utc-esr78.diff
[Triage Comment]
Approved for esr78
Comment 7•4 years ago
|
||
bugherder uplift |
Thunderbird 78.8.0:
https://hg.mozilla.org/releases/comm-esr78/rev/2567d82f537c
Updated•4 years ago
|
Description
•