assemble_changelog.py: Clean up datetime.fromtimestamp timezone handling #174

Open
gilles-peskine-arm wants to merge 1 commit from gilles-peskine-arm/assemble_changelog-utffromtimestamp into main
gilles-peskine-arm commented 2025-06-11 13:26:13 -05:00 (Migrated from github.com)

Get rid of harmless warnings when you run assemble_changelog.py with Python ≥3.12. We're using a deprecated function datetime.datetime.utcfromtimestamp, but we happen to be using it safely, and at the time of posting the function hasn't been removed yet.

This is the only script where we use datetime.datetime.utcfromtimestamp.

PR checklist

  • TF-PSA-Crypto PR not required because: only refactoring
  • development PR not required because: only refactoring
  • 3.6 PR not required because: only refactoring
Get rid of harmless warnings when you run `assemble_changelog.py` with Python ≥3.12. We're using a deprecated function [`datetime.datetime.utcfromtimestamp`](https://docs.python.org/3/library/datetime.html#datetime.datetime.utcfromtimestamp), but we happen to be using it safely, and at the time of posting the function hasn't been removed yet. This is the only script where we use `datetime.datetime.utcfromtimestamp`. ## PR checklist - [x] **TF-PSA-Crypto PR** not required because: only refactoring - [x] **development PR** not required because: only refactoring - [x] **3.6 PR** not required because: only refactoring
This pull request has changes conflicting with the target branch.
  • scripts/assemble_changelog.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'gilles-peskine-arm/assemble_changelog-utffromtimestamp:gilles-peskine-arm/assemble_changelog-utffromtimestamp'
git switch 'gilles-peskine-arm/assemble_changelog-utffromtimestamp'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'gilles-peskine-arm/assemble_changelog-utffromtimestamp'
git switch 'gilles-peskine-arm/assemble_changelog-utffromtimestamp'
git rebase 'main'
git switch 'main'
git merge --ff-only 'gilles-peskine-arm/assemble_changelog-utffromtimestamp'
git switch 'gilles-peskine-arm/assemble_changelog-utffromtimestamp'
git rebase 'main'
git switch 'main'
git merge --no-ff 'gilles-peskine-arm/assemble_changelog-utffromtimestamp'
git switch 'main'
git merge --squash 'gilles-peskine-arm/assemble_changelog-utffromtimestamp'
git switch 'main'
git merge --ff-only 'gilles-peskine-arm/assemble_changelog-utffromtimestamp'
git switch 'main'
git merge 'gilles-peskine-arm/assemble_changelog-utffromtimestamp'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/mbedtls-framework!174
No description provided.