Closed Bug 1894824 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 46042 - Use email.utils.parsedate_to_datetime to parse RFC (2)822 dates

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox128 fixed)

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 46042 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/46042
Details from upstream follow.

Sam Sneddon <gsnedders@apple.com> wrote:

Use email.utils.parsedate_to_datetime to parse RFC (2)822 dates

After c3a572d, checking the key cert via OpenSSL failed with a mismatch between aware and naive datetime objects. This happened because strptime creates a naive datetime object even when "%Z" is in the format string.

Instead, use the RFC 2822 date parser in email.utils, as this is the output format of OpenSSL, which produces an aware datetime object.

Fixes #46040.

PR 46042 applied with additional changes from upstream: c3a572d8051a24c10e10625715ed31bd2764bb4c
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
Test result changes from PR not available.
Pushed by ctuns@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/002acda6bf82 [wpt PR 46042] - Use email.utils.parsedate_to_datetime to parse RFC (2)822 dates, a=testonly
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.